Re: SOC BMW
Verfasst: Mo Mai 26, 2025 5:54 pm
Hab ich gerade gemacht, da ist nichts zu bestätigen.rleidner hat geschrieben: Mo Mai 26, 2025 5:35 pm Ich stochere hier im Nebel.
Melde Dich bitte mal per Browser am CD-Server an, vielleicht ist dort etwas zu bestätigen
Ich hab im Log noch weiter zurück gescrolled.rleidner hat geschrieben: Mo Mai 26, 2025 5:35 pm Ich benötige das Log zu dem Zeitpunkt, wenn nach einer Phase des Funktionierens zum ersten Mal die Abfrage nicht mehr funktioniert.
Code: Alles auswählen
2025-05-26 15:12:12,788 - {bimmer_connected.api.client:86} - {ERROR:fetch soc_ev3} - MyBMWAPIError due to HTTPStatusError: Internal Server Error
2025-05-26 15:12:12,795 - {bimmer_connected.account:130} - {ERROR:fetch soc_ev3} - Unable to get details for vehicle WBY8P610107D67014 - (MyBMWAPIError) HTTPStatusError: Internal Server Error
2025-05-26 15:12:12,802 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 err=MyBMWAPIError('HTTPStatusError: Internal Server Error'), type(err)=<class 'bimmer_connected.models.MyBMWAPIError'>
2025-05-26 15:12:12,873 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'modules.vehicles.bmwbc.api.RequestFailed'> ('SoC Request failed:\nHTTPStatusError: Internal Server Error',), 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: Server error '500 Internal Server Error' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=0&appDateTime=1748265119000'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
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: Internal Server Error
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: Internal Server Error
2025-05-26 15:26:57,518 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - 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-26 15:26:57,597 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 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-26 15:26:57,609 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - 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-26 15:41:53,874 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - 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-26 15:41:53,950 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 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-26 15:41:53,963 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - 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-26 15:56:49,054 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - 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-26 15:56:49,128 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 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-26 15:56:49,147 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - 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-26 16:56:48,923 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - 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-26 16:56:48,985 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 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-26 16:56:48,995 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - 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-26 17:56:48,833 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - 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-26 17:56:48,899 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 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-26 17:56:48,908 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - 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-26 18:56:47,483 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - 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-26 18:56:47,566 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vehicle_id: 3 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-26 18:56:47,574 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - 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