widewing / ha-toyota-na

Home Assistant integration for Toyota Motor (North America) connected services
72 stars 15 forks source link

Failed setup #71

Closed s3anyboy closed 6 days ago

s3anyboy commented 3 months ago

Failed setup, will retry: 400, message='Bad Request', url=URL('https://oneapi.telematicsct.com/v1/global/remote/status')

bmitchell76 commented 3 months ago

I'm having the same issue. Could it be because I don't have an active subscription?

bmitchell76 commented 3 months ago

Nope, I activated the service to see and I still get the same error.

bmitchell76 commented 3 months ago

This error originated from a custom integration.

Logger: custom_components.toyota_na Source: custom_components/toyota_na/init.py:104 integration: Toyota (North America) (documentation, issues) First occurred: 9:22:42 AM (19 occurrences) Last logged: 9:41:10 AM

Error fetching data Traceback (most recent call last): File "/config/custom_components/toyota_na/init.py", line 104, in update_vehicles_status raw_vehicles = await get_vehicles(client) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/vehicle/vehicle.py", line 36, in get_vehicles await vehicle.update() File "/usr/local/lib/python3.12/site-packages/toyota_na/vehicle/vehicle_generations/seventeen_cy_plus.py", line 77, in update vehicle_status = await self._client.get_vehicle_status(self._vin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 67, in get_vehicle_status return await self.get_vehicle_status_17cyplus(vin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 80, in get_vehicle_status_17cyplus return await self.api_get("v1/global/remote/status", {"VIN": vin}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 41, in api_get return await self.api_request("GET", endpoint, header_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 31, in api_request resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1070, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://oneapi.telematicsct.com/v1/global/remote/status')

mrplesh commented 3 months ago

`This error originated from a custom integration.

Logger: custom_components.toyota_na Source: custom_components/toyota_na/init.py:104 integration: Toyota (North America) (documentation, issues) First occurred: July 1, 2024 at 9:46:37 PM (223 occurrences) Last logged: 2:39:54 AM

Error fetching data Traceback (most recent call last): File "/config/custom_components/toyota_na/init.py", line 104, in update_vehicles_status raw_vehicles = await get_vehicles(client) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/vehicle/vehicle.py", line 36, in get_vehicles await vehicle.update() TypeError: object NoneType can't be used in 'await' expression`

Getting this error after successfully logging in and using OTP

bmitchell76 commented 3 months ago

@mrplesh so how does one go about getting it fixed?

mrplesh commented 3 months ago

Hoping someone can tell me lol

Maxxiime commented 2 months ago

Same issue

mgoettelman commented 2 months ago

Same here

Log details (ERROR) This error originated from a custom integration. Logger: custom_components.toyota_na Source: custom_components/toyota_na/init.py:104 integration: Toyota (North America) (documentation, issues) First occurred: 7:17:27 AM (9 occurrences) Last logged: 7:19:44 AM

Error fetching data Traceback (most recent call last): File "/config/custom_components/toyota_na/init.py", line 104, in update_vehicles_status raw_vehicles = await get_vehicles(client) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/vehicle/vehicle.py", line 36, in get_vehicles await vehicle.update() File "/usr/local/lib/python3.12/site-packages/toyota_na/vehicle/vehicle_generations/seventeen_cy_plus.py", line 77, in update vehicle_status = await self._client.get_vehicle_status(self._vin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 67, in get_vehicle_status return await self.get_vehicle_status_17cyplus(vin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 80, in get_vehicle_status_17cyplus return await self.api_get("v1/global/remote/status", {"VIN": vin}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 41, in api_get return await self.api_request("GET", endpoint, header_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toyota_na/client.py", line 31, in api_request resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1070, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://oneapi.telematicsct.com/v1/global/remote/status')

yankees5963 commented 1 month ago

same error, im assuming toyota changed their API again

Fgreg881 commented 3 weeks ago

Same issue

bmitchell76 commented 2 weeks ago

@dkmcgowan, I appreciate you working on this. I was hopeful the update would address this issue but it’s still not working for me, any ideas?

dkmcgowan commented 2 weeks ago

These API calls all still work for me so no major change to the API's as I can see. The only time I saw bad requests was when the connect service was not subscribed. I would need to see the request object getting created to see what is different but that's inside the library we can't openly work with anymore.

bmitchell76 commented 2 weeks ago

Which subscription service is required? Safety Connect?

dkmcgowan commented 2 weeks ago

I currently have Safety Connect, Service Connect, and Remote Connect so not positive which all ones are required

dkmcgowan commented 2 weeks ago

Some of that is actually trial, it started failing on me and I subscribed to "Go Anywhere" which includes Drive Connect and Remote Connect. I see Safety Connect and Service Connect listed as trial but without expiration, so maybe it's just bad UI.

bmitchell76 commented 2 weeks ago

The last time I tinkered with this I activated safety connect, it looks like that and all other tiers include remote connect going month-to-month. I had an option to activate a trial for Service Connect that I just activated but still no dice.

dkmcgowan commented 2 weeks ago

maybe give it some time, the activation for me didn't work right away once it expired

nishithdev commented 1 week ago

I have safety connect only , is there a way to bypass checking for remote connect?

dkmcgowan commented 6 days ago

No, the API calls do not work without remote service subscription