core icon indicating copy to clipboard operation
core copied to clipboard

BMW connected drive HTTP 429 even after cooldown of 24+ hours

Open Johanneke opened this issue 1 year ago • 11 comments

The problem

The BMW Connected Drive integration is unable to initialise after updating Home Assistant Core to 2024.8.3. It results in the following message: Failed setup, will retry: HTTPStatusError: Client error '429 Too Many Requests' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429

I did have this issue previously as well, and found the solution somewhere in an old issue to disable the integration until 0:00 UTC, or 24 hours. To be safe, I disabled the integration for almost two days. It did not solve the issue though, I keep getting the same error message.

What version of Home Assistant Core has the issue?

2024.8.3

What was the last working version of Home Assistant Core?

2024.7.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BMW Connected Drive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bmw_connected_drive

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Failed setup, will retry: HTTPStatusError: Client error '429 Too Many Requests' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429

Additional information

No response

Johanneke avatar Sep 05 '24 11:09 Johanneke

Hey there @gerard33, @rikroe, mind taking a look at this issue as it has been labeled with an integration (bmw_connected_drive) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of bmw_connected_drive can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign bmw_connected_drive Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bmw_connected_drive documentation bmw_connected_drive source (message by IssueLinks)

home-assistant[bot] avatar Sep 05 '24 11:09 home-assistant[bot]

Same Problem here

Speedy1991 avatar Sep 12 '24 15:09 Speedy1991

I had contact with BMW Group today. They told me their servers have issues with some (Dutch) routers from ISP's. The only way I can login to their server currently is from my phone's 5G connection. Hopefully they fix this soon...

Johanneke avatar Sep 12 '24 17:09 Johanneke

This started happening to me just today...any news of a real fix or this is a BMW issue?

Funny thing is i can connect on the bmw app without any issues which uses the same credentials. I am wondering if they are blocking HA connections perhaps?

paul-aviles avatar Sep 27 '24 22:09 paul-aviles

Same issue for me; just started this morning.

txcrew avatar Sep 28 '24 02:09 txcrew

I just got back from the bmw shop. If your system started failing between Thursday or Friday then it's because of the hurricane. Even the shop foreman's car hadn't gotten any updates since Thursday (he showed me his phone).

lenaxia avatar Sep 28 '24 15:09 lenaxia

I have no issues with the phone app, can log off and log back in without problems, HA is another story so how is the storm related to a cloud host which is not located in the storm radius?

paul-aviles avatar Sep 28 '24 16:09 paul-aviles

I have no issues with the phone app, can log off and log back in without problems, HA is another story so how is the storm related to a cloud host which is not located in the storm radius?

https://www.reddit.com/r/BMWiX/comments/1fr3dxb/na_servers_down/

lenaxia avatar Sep 28 '24 16:09 lenaxia

That makes sense, now why will BMW have servers in a DC without levels of redundancy is beyond me. Have several coworkers affected and with up to 3 feet of water in some cases which is really disheartening and amazing. Hope all recover soon and thought for those affected. Thanks for posting!

paul-aviles avatar Sep 28 '24 17:09 paul-aviles

App and HA integration down again in ZA. This becoming highly frustrating. How can there be no redundancy and often downtime.

Supermanenvysme avatar Oct 02 '24 15:10 Supermanenvysme

I think there was a general problem on Wednesday afternoon 2.10.2024, both my app and HA integration were down for about 6 hours in the afternoon (Finnish time, UTC+3).

lindsand avatar Oct 05 '24 07:10 lindsand

I think this issue is ongoing. Unable to login from HA, I'm certain credentials are correct. Getting 429 error.

dimab0 avatar Oct 10 '24 15:10 dimab0

I think this issue is ongoing. Unable to login from HA, I'm certain credentials are correct. Getting 429 error.

If you are in the Netherlands, the issue is with BMW, see also my comment: https://github.com/home-assistant/core/issues/125332#issuecomment-2346812658

You can try logging in on a webbrowser while on your WiFi/LAN and see if that also gives the 429 error or not.

Johanneke avatar Nov 25 '24 10:11 Johanneke

@frenck I saw in another project (evcc) that BMW changed the auth (hcaptcha) for the api.

https://github.com/evcc-io/evcc/pull/17445

I got since 1-2 weeks this error in HA and the BMW Core integration doesn't work.

Logger: bimmer_connected.api.authentication Quelle: components/bmw_connected_drive/coordinator.py:68

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

Anyone else these problems?

PlayerSite3 avatar Dec 01 '24 07:12 PlayerSite3

@frenck I saw in another project (evcc) that BMW changed the auth (hcaptcha) for the api.

evcc-io/evcc#17445

I got since 1-2 weeks this error in HA and the BMW Core integration doesn't work.

Logger: bimmer_connected.api.authentication Quelle: components/bmw_connected_drive/coordinator.py:68

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

Anyone else these problems?

I'm having the same issue after installing the latest HA Update.

Failed to set up: HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method) Integration entries

stintov avatar Dec 01 '24 08:12 stintov

Same here for 2 days now.

Schermbecker avatar Dec 01 '24 09:12 Schermbecker

Once you logged out, you cannot log back in due to #128598 for which a fix will be release with 2024.12.

rikroe avatar Dec 01 '24 10:12 rikroe

Used the fix within 2024.12, but doesn't seem to work anymore. After filling the Captcha code all is fine, but within the minut I get the same massage again.

arjanhs avatar Dec 10 '24 14:12 arjanhs

Used the fix within 2024.12, but doesn't seem to work anymore. After filling the Captcha code all is fine, but within the minut I get the same massage again.

Yes - that started this morning - the capture code logs in then expires straight away, Using Rest of World and 2024.12. BMW App is still working fine. Going to try disabling the integration and letting it cool down for 24hrs in case this is a rate limiting thing.

philmale avatar Dec 10 '24 14:12 philmale

Same here. Worked for some days but now error pops up a few seconds after using new token.

Schermbecker avatar Dec 10 '24 16:12 Schermbecker

Update: works again. It was BMW's fault 😬

Schermbecker avatar Dec 10 '24 18:12 Schermbecker

@home-assistant close

rikroe avatar Dec 12 '24 19:12 rikroe