aus meiner Erfahrung heraus, mussi ch alle 2-3 Tage das captcha für meinen Mini erneuern.
Code: Alles auswählen
2025-05-24 09:38:15,988 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.started
2025-05-24 09:38:15,991 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.complete
2025-05-24 09:38:15,995 - {bimmer_connected.api.client:86} - {ERROR:fetch soc_ev0} - MyBMWAPIError due to HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2025-05-24 09:38:15,999 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.started
2025-05-24 09:38:16,004 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.complete
2025-05-24 09:38:16,007 - {bimmer_connected.account:130} - {ERROR:fetch soc_ev0} - Unable to get details for vehicle WMWXP310302P05872 - (MyBMWAPIError) HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2025-05-24 09:38:16,010 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev0} - bmwbc.fetch_soc: requestData Error, vehicle_id: 0 err=MyBMWAPIError('HTTPStatusError: {"message":"Request Timeout","statusCode":408}'), type(err)=<class 'bimmer_connected.models.MyBMWAPIError'>
2025-05-24 09:38:16,041 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'modules.vehicles.bmwbc.api.RequestFailed'> ('SoC Request failed:\nHTTPStatusError: {"message":"Request Timeout","statusCode":408}',), Traceback:
Traceback (most recent call last):
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/client.py", line 77, in raise_for_status_event_handler
response.raise_for_status()
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '408 Request Timeout' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=0&appDateTime=1748072275000'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 291, in _fetch_soc
await self._account[user_id].get_vehicles()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 134, in get_vehicles
raise ex
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 120, in get_vehicles
await vehicle.get_vehicle_state()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/vehicle/vehicle.py", line 108, in get_vehicle_state
state_response = await client.get(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1801, in get
return await self.request(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
response = await self._send_handling_auth(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
response = await self._send_handling_redirects(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1747, in _send_handling_redirects
raise exc
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1729, in _send_handling_redirects
await hook(response)
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/client.py", line 79, in raise_for_status_event_handler
await handle_httpstatuserror(ex, log_handler=_LOGGER)
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/utils.py", line 89, in handle_httpstatuserror
raise _ex_to_raise(_err_message) from ex
bimmer_connected.models.MyBMWAPIError: HTTPStatusError: {"message":"Request Timeout","statusCode":408}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
car_state = self._get_carstate_by_source(vehicle_update_data, source)
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 117, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
return api.fetch_soc(
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 358, in fetch_soc
soc, range, soc_tsX = loop.run_until_complete(api._fetch_soc(user_id, password, vin, captcha_token, vehicle_id))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 344, in _fetch_soc
raise RequestFailed("SoC Request failed:\n" + str(err))
modules.vehicles.bmwbc.api.RequestFailed: SoC Request failed:
HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2025-05-24 09:42:58,037 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev0} - Vehicle Instance <class 'modules.vehicles.bmwbc.config.BMWbc'>
2025-05-24 09:42:58,050 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev0} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=92)
2025-05-24 09:42:58,055 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev0} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=30000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None, soc_timestamp=1747999618.0)
2025-05-24 09:42:58,061 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev0} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2025-05-24 09:42:58,066 - {modules.common.component_context:31} - {DEBUG:fetch soc_ev0} - Update Komponente ['BMW (Bimmer)']
2025-05-24 09:42:58,072 - {asyncio:59} - {DEBUG:fetch soc_ev0} - Using selector: EpollSelector
2025-05-24 09:42:58,077 - {modules.vehicles.bmwbc.api:153} - {DEBUG:fetch soc_ev0} - # Reuse api _instance
2025-05-24 09:42:58,081 - {modules.vehicles.bmwbc.api:166} - {DEBUG:fetch soc_ev0} - dataPath=/var/www/html/openWB/data/modules/bmwbc
2025-05-24 09:42:58,090 - {modules.vehicles.bmwbc.api:214} - {DEBUG:fetch soc_ev0} - captcha token unchanged
2025-05-24 09:42:58,095 - {modules.vehicles.bmwbc.api:222} - {INFO:fetch soc_ev0} - authenticate via current token set
2025-05-24 09:42:58,100 - {modules.vehicles.bmwbc.api:250} - {DEBUG:fetch soc_ev0} - # Create _clconf instance
2025-05-24 09:42:58,104 - {modules.vehicles.bmwbc.api:257} - {DEBUG:fetch soc_ev0} - # Create _account instance
2025-05-24 09:42:58,108 - {modules.vehicles.bmwbc.api:282} - {DEBUG:fetch soc_ev0} - # Proactive login to force refresh token before get_vehicles
2025-05-24 09:42:58,113 - {modules.vehicles.bmwbc.api:283} - {DEBUG:fetch soc_ev0} - # before proactive login:2025-05-24 07:36:55.373930+00:00/Usxs5J3UV492j7eGyetHFMzGmks
2025-05-24 09:42:58,172 - {bimmer_connected.api.authentication:257} - {DEBUG:fetch soc_ev0} - Authenticating with refresh token for North America & Rest of World.
2025-05-24 09:42:58,178 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='cocoapi.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-05-24 09:42:58,216 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6afdf5c8>
2025-05-24 09:42:58,219 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6ea2fa48> server_hostname='cocoapi.bmwgroup.com' timeout=30.0
2025-05-24 09:42:58,265 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6afdf568>
2025-05-24 09:42:58,269 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.started request=<Request [b'GET']>
2025-05-24 09:42:58,273 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.complete
2025-05-24 09:42:58,276 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.started request=<Request [b'GET']>
2025-05-24 09:42:58,279 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.complete
2025-05-24 09:42:58,281 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.started request=<Request [b'GET']>
2025-05-24 09:42:58,314 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sat, 24 May 2025 07:42:58 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Content-Length', b'580'), (b'Connection', b'keep-alive'), (b'x-correlation-id', b'a699010b-7050-40b6-8b5e-e01edf423ba6'), (b'bmw-correlation-id', b'a699010b-7050-40b6-8b5e-e01edf423ba6'), (b'x-cluster-mock-used', b'false'), (b'Strict-Transport-Security', b'max-age=31536000; includeSubDomains'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Security-Policy', b"default-src 'self'"), (b'Request-Context', b'appId=cid-v1:24f34ad2-7e62-4399-93db-3071c599c619'), (b'x-azure-ref', b'20250524T074258Z-17cf4485d46phrgghC1FRA0s9w00000001ag000000009kmu'), (b'X-Cache', b'CONFIG_NOCACHE'), (b'Accept-Ranges', b'bytes')])
2025-05-24 09:42:58,321 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.started request=<Request [b'GET']>
2025-05-24 09:42:58,324 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.complete
2025-05-24 09:42:58,326 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.started
2025-05-24 09:42:58,329 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.complete
2025-05-24 09:42:58,335 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='customer.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-05-24 09:42:58,370 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6aff8f88>
2025-05-24 09:42:58,373 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6ea2fa48> server_hostname='customer.bmwgroup.com' timeout=30.0
2025-05-24 09:42:58,400 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6afed268>
2025-05-24 09:42:58,404 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.started request=<Request [b'POST']>
2025-05-24 09:42:58,407 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.complete
2025-05-24 09:42:58,410 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.started request=<Request [b'POST']>
2025-05-24 09:42:58,413 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.complete
2025-05-24 09:42:58,415 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.started request=<Request [b'POST']>
2025-05-24 09:42:58,453 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.complete return_value=(b'HTTP/1.1', 400, b'Bad Request', [(b'date', b'Sat, 24 May 2025 07:42:58 GMT'), (b'content-type', b'application/json'), (b'Content-Length', b'304'), (b'x-frame-options', b'SAMEORIGIN'), (b'x-content-type-options', b'nosniff'), (b'cache-control', b'no-store'), (b'pragma', b'no-cache'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains'), (b'access-control-allow-headers', b'Authorization, Origin, X-c2b-Authorization, X-c2b-mTAN, X-Requested-With, X-c2b-Sender-Id, X-c2b-External-Id, Content-Type, Accept, Cache-Control, KeyId, x-dtc, deviceName, loginId, clientId, X-C2b-Api-Key, hcaptchatoken'), (b'access-control-max-age', b'3628800'), (b'access-control-allow-credentials', b'true'), (b'access-control-allow-methods', b'POST, GET, OPTIONS, PUT, DELETE, HEAD'), (b'referrer-policy', b'same-origin'), (b'x-xss-protection', b'0'), (b'x-c2b-request-id', b'81f4df4f-6b98-4ba3-9a97-8ffe084b5ea313993631'), (b'x-request-id', b'0b5f66fa-8016-4b27-a4e8-c98ef084dec6'), (b'via', b'1.1 google'), (b'Alt-Svc', b'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000')])
2025-05-24 09:42:58,464 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.started request=<Request [b'POST']>
2025-05-24 09:42:58,482 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.complete
2025-05-24 09:42:58,490 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.started
2025-05-24 09:42:58,499 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.complete
2025-05-24 09:42:58,525 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev0} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-05-24 09:42:58,530 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.started
2025-05-24 09:42:58,536 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.complete
2025-05-24 09:42:58,542 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.started
2025-05-24 09:42:58,549 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.complete
2025-05-24 09:42:58,552 - {bimmer_connected.api.authentication:288} - {DEBUG:fetch soc_ev0} - Unable to get access token using refresh token, falling back to username/password.
2025-05-24 09:42:58,609 - {bimmer_connected.api.authentication:156} - {DEBUG:fetch soc_ev0} - Authenticating with MyBMW flow for North America & Rest of World.
2025-05-24 09:42:58,612 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev0} - bmwbc.fetch_soc: requestData Error, vehicle_id: 0 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-05-24 09:42:58,623 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'modules.vehicles.bmwbc.api.RequestFailed'> ('SoC Request failed:\nMissing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 285, in _fetch_soc
await self._auth[user_id].login()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
token_data = await self._login_row_na()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
car_state = self._get_carstate_by_source(vehicle_update_data, source)
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 117, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
return api.fetch_soc(
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 358, in fetch_soc
soc, range, soc_tsX = loop.run_until_complete(api._fetch_soc(user_id, password, vin, captcha_token, vehicle_id))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 344, in _fetch_soc
raise RequestFailed("SoC Request failed:\n" + str(err))
modules.vehicles.bmwbc.api.RequestFailed: SoC Request failed:
Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html
2025-05-24 09:48:01,312 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev0} - Vehicle Instance <class 'modules.vehicles.bmwbc.config.BMWbc'>
2025-05-24 09:48:01,317 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev0} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=92)
2025-05-24 09:48:01,328 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev0} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=30000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None, soc_timestamp=1747999618.0)
2025-05-24 09:48:01,331 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev0} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2025-05-24 09:48:01,340 - {modules.common.component_context:31} - {DEBUG:fetch soc_ev0} - Update Komponente ['BMW (Bimmer)']
2025-05-24 09:48:01,344 - {asyncio:59} - {DEBUG:fetch soc_ev0} - Using selector: EpollSelector
2025-05-24 09:48:01,366 - {modules.vehicles.bmwbc.api:153} - {DEBUG:fetch soc_ev0} - # Reuse api _instance
2025-05-24 09:48:01,372 - {modules.vehicles.bmwbc.api:166} - {DEBUG:fetch soc_ev0} - dataPath=/var/www/html/openWB/data/modules/bmwbc
2025-05-24 09:48:01,384 - {modules.vehicles.bmwbc.api:214} - {DEBUG:fetch soc_ev0} - captcha token unchanged
2025-05-24 09:48:01,398 - {modules.vehicles.bmwbc.api:222} - {INFO:fetch soc_ev0} - authenticate via current token set
2025-05-24 09:48:01,410 - {modules.vehicles.bmwbc.api:250} - {DEBUG:fetch soc_ev0} - # Create _clconf instance
2025-05-24 09:48:01,420 - {modules.vehicles.bmwbc.api:257} - {DEBUG:fetch soc_ev0} - # Create _account instance
2025-05-24 09:48:01,427 - {modules.vehicles.bmwbc.api:282} - {DEBUG:fetch soc_ev0} - # Proactive login to force refresh token before get_vehicles
2025-05-24 09:48:01,430 - {modules.vehicles.bmwbc.api:283} - {DEBUG:fetch soc_ev0} - # before proactive login:2025-05-24 07:36:55.373930+00:00/Usxs5J3UV492j7eGyetHFMzGmks
2025-05-24 09:48:01,489 - {bimmer_connected.api.authentication:257} - {DEBUG:fetch soc_ev0} - Authenticating with refresh token for North America & Rest of World.
2025-05-24 09:48:01,500 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='cocoapi.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-05-24 09:48:01,570 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6afec7d8>
2025-05-24 09:48:01,573 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6ade39b8> server_hostname='cocoapi.bmwgroup.com' timeout=30.0
2025-05-24 09:48:01,661 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6af1cac0>
2025-05-24 09:48:01,668 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.started request=<Request [b'GET']>
2025-05-24 09:48:01,677 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.complete
2025-05-24 09:48:01,681 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.started request=<Request [b'GET']>
2025-05-24 09:48:01,686 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.complete
2025-05-24 09:48:01,694 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.started request=<Request [b'GET']>
2025-05-24 09:48:01,732 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sat, 24 May 2025 07:48:01 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Content-Length', b'580'), (b'Connection', b'keep-alive'), (b'x-correlation-id', b'4b7c5965-12fb-4a83-a153-5203a221dfc9'), (b'bmw-correlation-id', b'4b7c5965-12fb-4a83-a153-5203a221dfc9'), (b'x-cluster-mock-used', b'false'), (b'Strict-Transport-Security', b'max-age=31536000; includeSubDomains'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Security-Policy', b"default-src 'self'"), (b'Request-Context', b'appId=cid-v1:24f34ad2-7e62-4399-93db-3071c599c619'), (b'x-azure-ref', b'20250524T074801Z-15bd97cbc59hj8b7hC1DUS5p300000000ceg00000000nyhs'), (b'X-Cache', b'CONFIG_NOCACHE'), (b'Accept-Ranges', b'bytes')])
2025-05-24 09:48:01,747 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.started request=<Request [b'GET']>
2025-05-24 09:48:01,768 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.complete
2025-05-24 09:48:01,772 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.started
2025-05-24 09:48:01,776 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.complete
2025-05-24 09:48:01,810 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='customer.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-05-24 09:48:01,876 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6a8c6ad8>
2025-05-24 09:48:01,879 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6ade39b8> server_hostname='customer.bmwgroup.com' timeout=30.0
2025-05-24 09:48:01,915 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6afd5868>
2025-05-24 09:48:01,920 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.started request=<Request [b'POST']>
2025-05-24 09:48:01,928 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.complete
2025-05-24 09:48:01,931 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.started request=<Request [b'POST']>
2025-05-24 09:48:01,951 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.complete
2025-05-24 09:48:01,954 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.started request=<Request [b'POST']>
2025-05-24 09:48:02,028 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.complete return_value=(b'HTTP/1.1', 400, b'Bad Request', [(b'date', b'Sat, 24 May 2025 07:48:01 GMT'), (b'content-type', b'application/json'), (b'Content-Length', b'304'), (b'x-frame-options', b'SAMEORIGIN'), (b'x-content-type-options', b'nosniff'), (b'cache-control', b'no-store'), (b'pragma', b'no-cache'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains'), (b'access-control-allow-headers', b'Authorization, Origin, X-c2b-Authorization, X-c2b-mTAN, X-Requested-With, X-c2b-Sender-Id, X-c2b-External-Id, Content-Type, Accept, Cache-Control, KeyId, x-dtc, deviceName, loginId, clientId, X-C2b-Api-Key, hcaptchatoken'), (b'access-control-max-age', b'3628800'), (b'access-control-allow-credentials', b'true'), (b'access-control-allow-methods', b'POST, GET, OPTIONS, PUT, DELETE, HEAD'), (b'referrer-policy', b'same-origin'), (b'x-xss-protection', b'0'), (b'x-c2b-request-id', b'7e278c29-60ee-4a3c-8cf0-541c27d70d711526238'), (b'x-request-id', b'9baad77a-f9d7-4c52-9d64-ec33f0df6e48'), (b'via', b'1.1 google'), (b'Alt-Svc', b'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000')])
2025-05-24 09:48:02,086 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.started request=<Request [b'POST']>
2025-05-24 09:48:02,096 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.complete
2025-05-24 09:48:02,100 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.started
2025-05-24 09:48:02,107 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.complete
2025-05-24 09:48:02,111 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev0} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-05-24 09:48:02,119 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.started
2025-05-24 09:48:02,129 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.complete
2025-05-24 09:48:02,132 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.started
2025-05-24 09:48:02,141 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - close.complete
2025-05-24 09:48:02,146 - {bimmer_connected.api.authentication:288} - {DEBUG:fetch soc_ev0} - Unable to get access token using refresh token, falling back to username/password.
2025-05-24 09:48:02,211 - {bimmer_connected.api.authentication:156} - {DEBUG:fetch soc_ev0} - Authenticating with MyBMW flow for North America & Rest of World.
2025-05-24 09:48:02,214 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev0} - bmwbc.fetch_soc: requestData Error, vehicle_id: 0 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-05-24 09:48:02,235 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'modules.vehicles.bmwbc.api.RequestFailed'> ('SoC Request failed:\nMissing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 285, in _fetch_soc
await self._auth[user_id].login()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
token_data = await self._login_row_na()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
car_state = self._get_carstate_by_source(vehicle_update_data, source)
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 117, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
return api.fetch_soc(
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 358, in fetch_soc
soc, range, soc_tsX = loop.run_until_complete(api._fetch_soc(user_id, password, vin, captcha_token, vehicle_id))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 344, in _fetch_soc
raise RequestFailed("SoC Request failed:\n" + str(err))
modules.vehicles.bmwbc.api.RequestFailed: SoC Request failed:
Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html