You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In addition to an electric vehicle, there is another vehicle with classic diesel fuel in my account. Even if it is a vehicle on a PSA platform, unfortunately no data is offered in the PSA APIs, so that various "errors" and exceptions occur.
As described here, I would like to be able to ignore not relevant vehicles.
The calls are unnecessary and the error messages only make the log file confusing.
To Reproduce
Steps to reproduce the behavior:
An account with a vehicle is required for which the API does not display any meaningful data.
Log file
2021-10-14 21:54:20,291 :: ERROR :: get_vehicle_info: ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'X-Backside-Transport': 'OK OK', 'Connection': 'close', 'Content-Type': 'application/hal+json', 'Date': 'Thu, 14 Oct 2021 21:54:20 GMT', 'X-Global-Transaction-ID': 'xxx', 'Cache-Control': 'no-store, no-cache, must-revalidate, private', 'Expires': '0', 'Access-Control-Expose-Headers': 'APIm-Debug-Trans-Id, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Global-Transaction-ID', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET', 'Set-Cookie': 'rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 13-Oct-2021 21:54:20 GMT, JSESSIONID=xxx; path=/, PSACountry=DE;Domain=.groupe-psa.com;Path=/'})
HTTP response body: {"uuid":"xxx","code":40400,"message":"Not Found: We didn't find the status for this vehicule."}
2021-10-14 21:54:21,395 :: ERROR :: get_vehicle_info: ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'X-Backside-Transport': 'OK OK', 'Connection': 'close', 'Content-Type': 'application/hal+json', 'Date': 'Thu, 14 Oct 2021 21:54:21 GMT', 'X-Global-Transaction-ID': 'xxx', 'Cache-Control': 'no-store, no-cache, must-revalidate, private', 'Expires': '0', 'Access-Control-Expose-Headers': 'APIm-Debug-Trans-Id, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Global-Transaction-ID', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET', 'Set-Cookie': 'rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 13-Oct-2021 21:54:20 GMT, JSESSIONID=xxx; path=/, PSACountry=DE;Domain=.groupe-psa.com;Path=/'})
HTTP response body: {"uuid":"xxx","code":40400,"message":"Not Found: We didn't find the status for this vehicule."}
2021-10-14 21:54:21,396 :: ERROR :: status of VXEVEEHZ is None
2021-10-14 21:54:21,397 :: ERROR :: Probably can't retrieve all information from API:
Traceback (most recent call last):
File "/psa_car_controller/charge_control.py", line 68, in process
vehicle_status = self.psacc.vehicles_list.get_car_by_vin(self.vin).get_status()
File "/psa_car_controller/libs/car.py", line 51, in get_status
raise ValueError("status of {} is None".format(self.vin))
ValueError: status of VXEVEEHZ is None
Describe the bug
In addition to an electric vehicle, there is another vehicle with classic diesel fuel in my account. Even if it is a vehicle on a PSA platform, unfortunately no data is offered in the PSA APIs, so that various "errors" and exceptions occur.
As described here, I would like to be able to ignore not relevant vehicles.
The calls are unnecessary and the error messages only make the log file confusing.
To Reproduce
Steps to reproduce the behavior:
An account with a vehicle is required for which the API does not display any meaningful data.
Log file
Cars file
UI
![grafik](https://user-images.githubusercontent.com/12496340/137402463-065d12e3-d2b6-4c0a-887b-c6085a4b1707.png)
get_vehicleinfo
![grafik](https://user-images.githubusercontent.com/12496340/137402334-560f4d32-b0fa-4021-afad-e3672a139be0.png)
The text was updated successfully, but these errors were encountered: