flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
385 stars 196 forks source link

Bekomme keine Daten mehr! #855

Closed christian-moeller closed 1 month ago

christian-moeller commented 2 months ago

Mein PSA-Car-Controller hat nun längere Zeit problemlos funktioniert. Seit heute liefert er keinen SOC mehr an evcc. Im Log von PSACC finde ich folgendes:

2024-04-16 16:03:26,073 :: ERROR :: Exception on /get_vehicleinfo/########## [GET] Traceback (most recent call last): File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/web/view/api.py", line 48, in get_vehicle_info response=json.dumps(APP.myp.get_vehicle_info(vin, from_cache).to_dict(), default=str), File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/psa_client.py", line 107, in get_vehicle_info res = self.api().get_vehicle_status(car.vehicle_id) File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api/vehicles_api.py", line 1229, in get_vehicle_status (data) = self.get_vehicle_status_with_http_info(id, **kwargs) # noqa: E501 File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api/vehicles_api.py", line 1293, in get_vehicle_status_with_http_info return self.api_client.call_api( File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/oauth.py", line 107, in call_api return self._ApiClient__call_api(resource_path, method, File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 147, in __call_api self.update_params_for_auth(header_params, query_params, auth_settings) File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 504, in update_params_for_auth auth_setting = self.configuration.auth_settings().get(auth) File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/configuration.py", line 241, in auth_settings 'value': 'Bearer ' + self.access_token TypeError: can only concatenate str (not "NoneType") to str

Ich habe meinen RasbPi schon neu gestartet, aber der Fehler bleibt.

Was ist zu tun?

Herzlichen Dank für alle hilfreichen Tipps! Christian

GewoonJaap commented 2 months ago

Probably related to #851