Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Authentication Failed #661

Closed
3 of 5 tasks
kpridgeon opened this issue Oct 16, 2024 · 7 comments · Fixed by #665
Closed
3 of 5 tasks

Client Authentication Failed #661

kpridgeon opened this issue Oct 16, 2024 · 7 comments · Fixed by #665
Labels
bug 🐛 Something isn't working

Comments

@kpridgeon
Copy link

Describe the issue

Unable to connect to retrieve the bmw vehicles.

Receive this error message:
site-packages/bimmer_connected/api/utils.py", line 89, in handle_httpstatuserror
raise _ex_to_raise(_err_message) from ex
bimmer_connected.models.MyBMWAuthError: HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)

Expected behavior

Yesterday it was able to retrieve the bmw information.

Which Home Assistant version are you using?

None

What was the last working version of Home Assistant Core?

No response

What is your region?

North America

MyBMW website

  • I can still successfully login to the BMW MyBMW website and the car status is available there.
  • I have MyBMW enabled for my vehicle.

Number of cars

  • I have 2 or more cars linked to the MyBMW account.
  • I have a Mini vehicle linked to my account.
  • I have a Toyota Supra vehicle linked to my account.

Output of bimmer_connected fingerprint

MyBMWAuthError due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
MyBMWAuthError: HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)

Anything in the logs that might be useful for us?

No response

Additional information

No response

@kpridgeon kpridgeon added the bug 🐛 Something isn't working label Oct 16, 2024
@jarjarfinks
Copy link

Same here. Have had no issues until now. 2024 M440i here

@rikroe
Copy link
Member

rikroe commented Oct 19, 2024

Whats your location (US/rest of world)?

@jarjarfinks
Copy link

Whats your location (US/rest of world)?

US

@Berzerker
Copy link

Berzerker commented Oct 20, 2024

Also having this issue, US region

@kpridgeon
Copy link
Author

I am using North_America:
MyBMWAccount(USERNAME, PASSWORD, Regions.NORTH_AMERICA)

@rikroe
Copy link
Member

rikroe commented Oct 22, 2024

Quick update I posted at home-assistant/core#128598

I was only able to confirm that currently authentication to North America is not possible. Rest of world still seems fine.

Unfortunately, I won't have the chance to look into it until next week (traveling).

@rikroe
Copy link
Member

rikroe commented Oct 28, 2024

Another update from home-assistant/core#128598

BMW have started using hCaptcha to protect their logins. Even if it doesn't show during login in the app, a captcha check is done in the background.

It seems that when no valid captcha token is preset, the login will be denied.

From a very quick check I have no immediate idea how to solve this (except using external captcha solver services with cost money).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
4 participants