hacf-fr / renault-api

https://readthedocs.org/projects/renault-api/
MIT License
102 stars 34 forks source link

TWINGO III Lock Status Error Code 404 #1228

Closed jwatzk closed 2 weeks ago

jwatzk commented 2 weeks ago

renault-api, version 0.2.3

I'm getting the following errors:

2024-06-18 07:36:03,589 - renault_api.kamereon - DEBUG - Received Kamereon response 404 on GET to https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/aaaaaaaa-bbbb-cccc-ddddddddddddddddd/kamereon/kca/car-adapter/v1/cars/VF1AH000XXXXXXXXX/lock-status?country=DE: {"type":"FUNCTIONAL","messages":[{"code":"err.func.wired.notFound","message":"{\"errors\":[{\"errorCode\":404,\"errorMessage\":\"There is no data for this vin and uid\",\"errorLevel\":\"error\",\"errorType\":\"functional\"}],\"error_reference\":\"rrt-05a9a1dec31534855-c-eu-18244-77783355-414\"}"}],"errors":[{"errorCode":"err.func.wired.notFound","errorMessage":"{\"errors\":[{\"errorCode\":404,\"errorMessage\":\"There is no data for this vin and uid\",\"errorLevel\":\"error\",\"errorType\":\"functional\"}],\"error_reference\":\"rrt-05a9a1dec31534855-c-eu-18244-77783355-414\"}"}],"error_reference":"FUNCTIONAL"}
2024-06-18 07:36:03,819 - renault_api.kamereon - DEBUG - Received Kamereon response 403 on GET to https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/aaaaaaaa-bbbb-cccc-ddddddddddddddddd/kamereon/kca/car-adapter/v1/cars/VF1AH000XXXXXXXXX/res-state?country=DE: {"type":"FUNCTIONAL","messages":[{"code":"err.func.wired.forbidden","message":"The access is forbidden"}],"errors":[{"errorCode":"err.func.wired.forbidden","errorMessage":"The access is forbidden"}],"error_reference":"FUNCTIONAL"}

All other Endpoints are OK.

epenet commented 2 weeks ago

Not all endpoints work on all vehicles. These two endpoints also fail on Zoe40.

It is not a bug

jwatzk commented 2 weeks ago

It would be fine if the renault-api cli version would return all valid endpoints and does not fail in general. BR Joe

epenet commented 2 weeks ago

There is no official list of endpoints for each vehicle. Some endpoints get added/removed without notification, so it is better to test all endpoints

In HA, all endpoints are tested on first load, and then only successful ones are kept (failures are discarded)