RolandT hat geschrieben: ↑Do Sep 28, 2023 9:44 pm
Hallo. Ich habe heute versucht die Tronity SOC Schnittstelle zu aktivieren.
Die Client ID, Client Secret sowie die Vehicle ID habe ich gemäß der Anleitung von Tronity eingetragen.
Leider kommt keine Verbindung zu stande.Hier das SOC-Log:
2023-09-28 23:29:42,831 - {modules.common.component_context:24} - {DEBUG:fetch soc_ev1} - Update Komponente ['Tronity']
2023-09-28 23:29:42,834 - {modules.vehicles.tronity.api:17} - {DEBUG:fetch soc_ev1} - Fetching Tronity SOC
2023-09-28 23:29:46,062 - {modules.common.fault_state:54} - {ERROR:fetch soc_ev1} - Tronity: FaultState FaultStateLevel.ERROR, FaultStr <class 'jwt.exceptions.DecodeError'> Not enough segments, Traceback:
Traceback (most recent call last):
File "/home/openwb/.local/lib/python3.9/site-packages/jwt/api_jws.py", line 250, in _load
signing_input, crypto_segment = jwt.rsplit(b".", 1)
ValueError: not enough values to unpack (expected 2, got 1)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 40, in update
self.store.set(self.__component_updater(soc_update_data))
File "/var/www/html/openWB/packages/modules/vehicles/tronity/soc.py", line 16, in updater
return fetch_soc(vehicle_config.configuration, soc_update_data, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/tronity/api.py", line 18, in fetch_soc
session = create_session(config, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/tronity/api.py", line 54, in create_session
if not is_token_valid(str(config.access_token)):
File "/var/www/html/openWB/packages/modules/vehicles/tronity/api.py", line 29, in is_token_valid
decoded_data = jwt.decode(jwt=access_token, verify=False, algorithms=['HS256'], options={"verify_signature": False})
File "/home/openwb/.local/lib/python3.9/site-packages/jwt/api_jwt.py", line 168, in decode
decoded = self.decode_complete(
File "/home/openwb/.local/lib/python3.9/site-packages/jwt/api_jwt.py", line 120, in decode_complete
decoded = api_jws.decode_complete(
File "/home/openwb/.local/lib/python3.9/site-packages/jwt/api_jws.py", line 191, in decode_complete
payload, signing_input, header, signature = self._load(jwt)
File "/home/openwb/.local/lib/python3.9/site-packages/jwt/api_jws.py", line 253, in _load
raise DecodeError("Not enough segments") from err
jwt.exceptions.DecodeError: Not enough segments
Wenn noch weitere Logs gebraucht werden, bitte melden.