Seite 73 von 75

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 5:54 pm
von gdfde
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
Hab ich gerade gemacht, da ist nichts zu bestätigen.
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.
Ich hab im Log noch weiter zurück gescrolled.

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
Ansonsten hab ich auch den Debug Level auf "Info" erhöht für die Zukunft.

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 6:27 pm
von rleidner
gdfde hat geschrieben: Mo Mai 26, 2025 5:54 pm Hab ich gerade gemacht, da ist nichts zu bestätigen.
OK, war nur eine Idee.
gdfde hat geschrieben: Mo Mai 26, 2025 5:54 pm Ich hab im Log noch weiter zurück gescrolled.
Danke, das ist interessant, da kam von CD-Server ein Fehler 500 - "Internal Server Error".

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 6:31 pm
von gdfde
rleidner hat geschrieben: Mo Mai 26, 2025 6:27 pm Danke, das ist interessant, da kam von CD-Server ein Fehler 500 - "Internal Server Error".
Danke vor allem an dich, dass du uns hier so uneigennützig supportest :-)

Ich werde das weiter verfolgen, "internal server error" klingt eher nach Instabilitäten bei BMW selbst, was mich doch etwas überraschen würde.

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 6:34 pm
von Extrahirn
Dem Dank kann ich mich nur anschliessen ! ;)

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 6:39 pm
von gdfde
Irgendetwas hat´s aber bei mir, ich kann den Token nicht erneuern bzw. wird der i3 nicht aktualisiert :-(

Ev. hängts an meinem Setup.
2 openwb Wallboxen im primary/secondary Betrieb.
Die WB in der Garage wird nicht benutzt, ich habe aber 2 Autos (1x i3, 1x etron Q4) an der WB aussen hängen.
Der etron hat 323 Reichweite und 90% SoC, der i3 hat 243 km Reichweite und auch 90% SoC (zufälligerweise).
Bildschirmfoto 2025-05-26 um 20.39.11.png
(424.06 KiB) Noch nie heruntergeladen

Code: Alles auswählen

2025-05-26 20:01:02,878 - {modules.common.store._api:31} - {INFO:store soc_ev1} - Saving CarState(soc=90, range=323, soc_timestamp=1748282223.115)
2025-05-26 20:01:53,535 - {modules.common.store._api:31} - {INFO:store soc_ev7} - Saving CarState(soc=90, range=243, soc_timestamp=1748282464.07)
2025-05-26 20:16:07,475 - {modules.common.store._api:31} - {INFO:store soc_ev1} - Saving CarState(soc=90, range=323, soc_timestamp=1748283184.431)
2025-05-26 20:16:58,368 - {modules.common.store._api:31} - {INFO:store soc_ev7} - Saving CarState(soc=90, range=243, soc_timestamp=1748283304.749)
2025-05-26 20:31:04,400 - {modules.common.store._api:31} - {INFO:store soc_ev1} - Saving CarState(soc=90, range=323, soc_timestamp=1748284144.192)
2025-05-26 20:31:55,142 - {modules.common.store._api:31} - {INFO:store soc_ev7} - Saving CarState(soc=90, range=243, soc_timestamp=1748284264.08)
2025-05-26 20:31:57,475 - {modules.vehicles.bmwbc.api:233} - {INFO:fetch soc_ev3} - authenticate via userid, password, captcha token
2025-05-26 20:31:57,481 - {modules.vehicles.bmwbc.api:290} - {INFO:fetch soc_ev3} - PRIMARY  : reload vehicles data
2025-05-26 20:32:01,493 - {modules.vehicles.bmwbc.api:315} - {INFO:fetch soc_ev3} - PRIMARY   SOC/Range: 90%/243.0KM@2025-05-23T16:49:28Z
2025-05-26 20:32:01,502 - {modules.vehicles.bmwbc.api:47} - {INFO:fetch soc_ev3} - store file action:store written
2025-05-26 20:32:14,180 - {modules.vehicles.bmwbc.api:315} - {INFO:fetch soc_ev3} - PRIMARY   SOC/Range: 90%/243.0KM@2025-05-23T16:49:28Z
2025-05-26 20:33:29,948 - {modules.vehicles.bmwbc.api:315} - {INFO:fetch soc_ev3} - PRIMARY   SOC/Range: 90%/243.0KM@2025-05-23T16:49:28Z
2025-05-26 20:33:29,959 - {modules.vehicles.bmwbc.api:47} - {INFO:fetch soc_ev3} - store file action:store written
2025-05-26 20:33:59,297 - {modules.vehicles.bmwbc.api:315} - {INFO:fetch soc_ev3} - PRIMARY   SOC/Range: 90%/243.0KM@2025-05-23T16:49:28Z

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 6:55 pm
von rleidner
gdfde hat geschrieben: Mo Mai 26, 2025 6:39 pm Irgendetwas hat´s aber bei mir, ich kann den Token nicht erneuern bzw. wird der i3 nicht aktualisiert :-(

Ev. hängts an meinem Setup.
2 openwb Wallboxen im primary/secondary Betrieb.
Die WB in der Garage wird nicht benutzt, ich habe aber 2 Autos (1x i3, 1x etron Q4) an der WB aussen hängen.
Das sieht eigentlich OK aus.
Wie gesagt liegt die Lösung vermutlich in der Fehlerbehandlung im Modul.
Alle Fehler führen momentan zu einer Anmeldung mit neuem Captcha-Token.

Daß es in manchen Fällen doch so häufig zu Fehlern vom CD-Server kommt, war mir bisher nicht klar.
Da werde ich versuchen das etwas smarter zu handhaben.
Vor Einführung des captcha letzten November war das kein Problem. Da konnte sich das Modul einfach neu anmelden.
Mit dem Captcha ist jetzt leider eine Benutzer-Aktion nötig geworden.

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 7:17 pm
von gdfde
ev. liegts auch daran, dass der i3 momentan (während dem captcha renewal) nicht an der Wallbox war, sondern der etron.

das werde ich morgen nochmal ausprobieren und den captcha erneuern, wenn der i3 an der WB hängt.

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 7:21 pm
von rleidner
gdfde hat geschrieben: Mo Mai 26, 2025 7:17 pm ev. liegts auch daran, dass der i3 momentan (während dem captcha renewal) nicht an der Wallbox war, sondern der etron.

das werde ich morgen nochmal ausprobieren und den captcha erneuern, wenn der i3 an der WB hängt.
Das hat m.E. keinen Einfluss.

Ich habe beim Testen gerade festgestellt, dass ich am 24.5. abends auch einen Fehler 408 bekommen hatte.
Es sieht aus als wenn auf dem CD-Server da etwas geändert wurde.

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 7:26 pm
von bios
Ich hab auch das Problem, alle 2-3 Tage das Captcha erneuern zu müssen.
Abfrage läuft, aber irgendwann, ohne erkennbaren Grund kommt z.B. der Fehler:

Code: Alles auswählen

2025-05-26 08:07:48,036 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_headers.complete return_value=(b'HTTP/1.1', 408, b'Request Timeout', [(b'Date', b'Mon, 26 May 2025 06:07:48 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Content-Length', b'46'), (b'Connection', b'keep-alive'), (b'x-correlation-id', b'ff862d60-f2d0-4c7f-8e40-ce9006c8bbe4'), (b'bmw-correlation-id', b'ff862d60-f2d0-4c7f-8e40-ce9006c8bbe4'), (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'set-cookie', b'ASLBSA=0003cd5b8acca59d1c1045671e4fe5516009741238ffcbf8d44ac8104a0476f6f791; Path=/; Secure; HttpOnly;'), (b'set-cookie', b'ASLBSACORS=0003cd5b8acca59d1c1045671e4fe5516009741238ffcbf8d44ac8104a0476f6f791; SameSite=none; Path=/; Secure; HttpOnly;'), (b'x-azure-ref', b'20250526T060727Z-157894679c4nsrlhhC1PRGg1600000000gd000000000gt80'), (b'X-Cache', b'CONFIG_NOCACHE')])
2025-05-26 08:07:48,056 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_body.started request=<Request [b'GET']>
2025-05-26 08:07:48,063 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_body.complete
2025-05-26 08:07:48,070 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - response_closed.started
2025-05-26 08:07:48,077 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - response_closed.complete
2025-05-26 08:07:48,083 - {bimmer_connected.api.client:86} - {ERROR:fetch soc_ev1} - MyBMWAPIError due to HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2025-05-26 08:07:48,089 - {httpcore.connection:85} - {DEBUG:fetch soc_ev1} - close.started
2025-05-26 08:07:48,095 - {httpcore.connection:85} - {DEBUG:fetch soc_ev1} - close.complete
2025-05-26 08:07:48,100 - {bimmer_connected.account:130} - {ERROR:fetch soc_ev1} - Unable to get details for vehicle xx- (MyBMWAPIError) HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2025-05-26 08:07:48,105 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev1} - bmwbc.fetch_soc: requestData Error, vehicle_id: 1 err=MyBMWAPIError('HTTPStatusError: {"message":"Request Timeout","statusCode":408}'), type(err)=<class 'bimmer_connected.models.MyBMWAPIError'>
2025-05-26 08:07:48,170 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev1} - BMW & Mini : 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=1748239647000'
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}
und ab dann nur mehr:

Code: Alles auswählen

2025-05-26 08:27:27,824 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_headers.started request=<Request [b'POST']>
2025-05-26 08:27:27,879 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_headers.complete return_value=(b'HTTP/1.1', 400, b'Bad Request', [(b'date', b'Mon, 26 May 2025 06:27:27 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'ffc0cbff-c777-41ef-bfcd-21cf52fe5cf31803473'), (b'x-request-id', b'cddfb41e-c8d5-4e05-9a2b-a77f8fe7fa89'), (b'via', b'1.1 google'), (b'Alt-Svc', b'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000')])
2025-05-26 08:27:27,902 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_body.started request=<Request [b'POST']>
2025-05-26 08:27:27,908 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - receive_response_body.complete
2025-05-26 08:27:27,917 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - response_closed.started
2025-05-26 08:27:27,922 - {httpcore.http11:85} - {DEBUG:fetch soc_ev1} - response_closed.complete
2025-05-26 08:27:27,928 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev1} - 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 08:27:27,936 - {httpcore.connection:85} - {DEBUG:fetch soc_ev1} - close.started
2025-05-26 08:27:27,941 - {httpcore.connection:85} - {DEBUG:fetch soc_ev1} - close.complete
2025-05-26 08:27:27,946 - {httpcore.connection:85} - {DEBUG:fetch soc_ev1} - close.started
2025-05-26 08:27:27,951 - {httpcore.connection:85} - {DEBUG:fetch soc_ev1} - close.complete
2025-05-26 08:27:27,955 - {bimmer_connected.api.authentication:288} - {DEBUG:fetch soc_ev1} - Unable to get access token using refresh token, falling back to username/password.
2025-05-26 08:27:28,012 - {bimmer_connected.api.authentication:156} - {DEBUG:fetch soc_ev1} - Authenticating with MyBMW flow for North America & Rest of World.
2025-05-26 08:27:28,018 - {modules.vehicles.bmwbc.api:336} - {ERROR:fetch soc_ev1} - bmwbc.fetch_soc: requestData Error, vehicle_id: 1 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 08:27:28,030 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev1} - BMW & Mini : 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
bis ich das Capchta erneuere, dann klappts gleich wieder.

Danke, rleidner, für deinen unermüdlichen Einsatz!

Re: SOC BMW

Verfasst: Mo Mai 26, 2025 9:13 pm
von rleidner
Danke.
Auch Fehler 408 - ich bin dran.