DurgNomis-drol / mytoyota

Python client for Toyota Connected Services API
MIT License
77 stars 32 forks source link

Error while calling `car.get_trips()` #356

Open Tony763 opened 4 months ago

Tony763 commented 4 months ago

Describe the bug I just tried to pull info about our cars fleet and hit a problem with car.get_trips().

client.get_vehicles() return list of cars and I can get dashboard/odometer/fuel_level from it but no success with trips.

Last month it worked perfectly.

To Reproduce Steps to reproduce the behavior:

Calling trips = await car.get_trips(date_start, date_end, full_route=False) will fail with:

Exception has occurred: ToyotaApiError
Request Failed.  403, {
 "status": {
   "messages": [
     {
       "responseCode": "APIGW-403",
       "description": "Unauthorized",
       "detailedDescription": "invalid token could not authorize"
     }
   ]
 }
}.

Expected behavior Retrieve list of trips for given car.

Additional context