ich bekomme bei abrufen des Soc's von Opel einen HTTP Fehler 400. Anbei der Auszug aus dem Log.
Code: Alles auswählen
2024-01-16 15:07:35,687 - {modules.common.fault_state:55} - {ERROR:fetch soc_ev4} - PSA: FaultState FaultStateLevel.ERROR, FaultStr <class 'Exception'> Error requesting PSA data for vehicle: 4, Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 111, in fetch_soc
session = create_session(
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 70, in create_session
access_token = session.post(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 662, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/var/www/html/openWB/packages/modules/common/req.py", line 10, in <lambda>
session.hooks['response'].append(lambda r, *args, **kwargs: r.raise_for_status())
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://idpcvs.opel.com/am/oauth2/access_token
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 109, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/psa/soc.py", line 20, in updater
return api.fetch_soc(vehicle_config.configuration, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 119, in fetch_soc
raise Exception("Error requesting PSA data for vehicle: %s" % vehicle_id)
Exception: Error requesting PSA data for vehicle: 4
2024-01-16 15:12:32,874 - {modules.common.fault_state:55} - {ERROR:fetch soc_ev4} - PSA: FaultState FaultStateLevel.ERROR, FaultStr <class 'Exception'> Error requesting PSA data for vehicle: 4, Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 111, in fetch_soc
session = create_session(
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 70, in create_session
access_token = session.post(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 662, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/var/www/html/openWB/packages/modules/common/req.py", line 10, in <lambda>
session.hooks['response'].append(lambda r, *args, **kwargs: r.raise_for_status())
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://idpcvs.opel.com/am/oauth2/access_token
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 109, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/psa/soc.py", line 20, in updater
return api.fetch_soc(vehicle_config.configuration, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 119, in fetch_soc
raise Exception("Error requesting PSA data for vehicle: %s" % vehicle_id)
Exception: Error requesting PSA data for vehicle: 4
2024-01-16 15:24:33,924 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev4} - Vehicle Instance <class 'modules.vehicles.psa.config.PSA'>
2024-01-16 15:24:33,925 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev4} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=100)
2024-01-16 15:24:33,927 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev4} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=50000, efficiency=95, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-01-16 15:24:33,931 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev4} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=43200, request_only_plugged=False)
2024-01-16 15:24:33,933 - {modules.common.component_context:24} - {DEBUG:fetch soc_ev4} - Update Komponente ['PSA']
2024-01-16 15:24:33,950 - {urllib3.connectionpool:973} - {DEBUG:fetch soc_ev4} - Starting new HTTPS connection (1): idpcvs.opel.com:443
2024-01-16 15:24:33,950 - {urllib3.connectionpool:973} - {DEBUG:fetch soc_ev4} - Starting new HTTPS connection (1): idpcvs.opel.com:443
2024-01-16 15:24:34,257 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev4} - https://idpcvs.opel.com:443 "POST /am/oauth2/access_token HTTP/1.1" 400 None
2024-01-16 15:24:34,257 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev4} - https://idpcvs.opel.com:443 "POST /am/oauth2/access_token HTTP/1.1" 400 None
2024-01-16 15:24:34,265 - {modules.common.fault_state:55} - {ERROR:fetch soc_ev4} - PSA: FaultState FaultStateLevel.ERROR, FaultStr <class 'Exception'> Error requesting PSA data for vehicle: 4, Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 111, in fetch_soc
session = create_session(
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 70, in create_session
access_token = session.post(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 662, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/var/www/html/openWB/packages/modules/common/req.py", line 10, in <lambda>
session.hooks['response'].append(lambda r, *args, **kwargs: r.raise_for_status())
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://idpcvs.opel.com/am/oauth2/access_token
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 109, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/psa/soc.py", line 20, in updater
return api.fetch_soc(vehicle_config.configuration, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/psa/api.py", line 119, in fetch_soc
raise Exception("Error requesting PSA data for vehicle: %s" % vehicle_id)
Exception: Error requesting PSA data for vehicle: 4
Es scheint als ob sich an der URL was geändert hat. Gibt es jemand der ähnliche Probleme hat?
Viele Grüße
Pascal