Replies: 5 comments 3 replies
-
Same issue here. It seems that BMW drastically reduced the number of allowed requests during 24hrs recently. I've now updated the interval to 30min between requests and that does it. I can probably finetune to be a little more aggressive, but clearly this interval is too large to be useful :( The strange thing is that the MyBMW App doesn't seem to be affected by this? Even when I hit this limitation with bimmer_connected I can still use the MyBMW App without any issues (on the same user account, for the same car). So clearly the App must have a smarter way to use the API? |
Beta Was this translation helpful? Give feedback.
-
Yes, i request every 20 minutes now, and works also well. |
Beta Was this translation helpful? Give feedback.
-
rest_of_world I can go to every 5 minutes with the new CLI option. |
Beta Was this translation helpful? Give feedback.
-
where is the new CLI option? thx |
Beta Was this translation helpful? Give feedback.
-
Only update bimmer_connected ? |
Beta Was this translation helpful? Give feedback.
-
can you help me?
[code]
Client MyBMW sending CONNECT
Client MyBMW received CONNACK (0)
[b]MyBMWQuotaError due to HTTPStatusError: Client error '429 Too Many Requests' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate'[/b]
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/api/authentication.py", line 419, in async_auth_flow
response.raise_for_status()
File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 759, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.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
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/bimmerconnected", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/cli.py", line 341, in main
loop.run_until_complete(args.func(args))
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/cli.py", line 137, in get_status
await account.get_vehicles()
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/account.py", line 101, in get_vehicles
await self._init_vehicles()
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/account.py", line 78, in _init_vehicles
vehicle_list_response = await client.post(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1877, in post
return await self.request(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1559, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1646, in send
response = await self._send_handling_auth(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1671, in _send_handling_auth
request = await auth_flow.anext()
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/api/authentication.py", line 81, in async_auth_flow
await self.login()
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/api/authentication.py", line 130, in login
token_data = await self._login_row_na()
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/api/authentication.py", line 183, in _login_row_na
response = await client.post(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1877, in post
return await self.request(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1559, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1646, in send
response = await self._send_handling_auth(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1692, in _send_handling_auth
raise exc
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1681, in _send_handling_auth
next_request = await auth_flow.asend(response)
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/api/authentication.py", line 421, in async_auth_flow
await handle_httpstatuserror(ex, log_handler=_LOGGER)
File "/usr/local/lib/python3.10/dist-packages/bimmer_connected/api/utils.py", line 86, in handle_httpstatuserror
raise _ex_to_raise(_err_message) from ex
bimmer_connected.models.[b]MyBMWQuotaError: HTTPStatusError: Client error '429 Too Many Requests' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate'[/b]
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
Client MyBMW sending DISCONNECT
beelink@beelink-MINI:~$[/code]
Beta Was this translation helpful? Give feedback.
All reactions