teslamotors / fleet-telemetry

Apache License 2.0
625 stars 66 forks source link

Error CSR when fleet_telemetry_config create #172

Closed themarch closed 1 month ago

themarch commented 1 month ago

Hi, i have a problem with my CSR when creating the fleet-telemetry config. However, my CSR has been validated because with this third-party token I can use the API in the usual way, like ‘vehicle_data’ for example.

I've followed all the previous steps to get fleet-telemetry on my server, but I get this error. Thanks in advance

I've noticed that it's only related to my bearer, because I can put anything in the body, it won't change anything. Here's my "URL" : bib-data.fr

Capture d’écran 2024-05-23 à 11 26 25

For example, here I have access to the classic API, my CSR has been accepted and I've already received an email about it.

Capture d’écran 2024-05-23 à 11 29 34

Thanks in advance.

Martucci98 commented 1 month ago

To add some information: For the request: "{{FLEET_API_URL}}/api/1/vehicles/{{vehicle_tag}}/fleet_telemetry_config" the answer is "true" (see the screen)

We are unable to check for the errors: While doing the request "{{FLEET_API_URL}}/api/1/partner_accounts/fleet_telemetry_errors", here is the answer we get { "response": null, "error": "Expected partner account token type", "error_description": "", "txid": "a1e27bf8341e8871d86337837009eb7e" }

Thank you for your help

Screenshot 2024-05-23 at 13 45 50 Screenshot 2024-05-23 at 13 51 33
patrickdemers6 commented 1 month ago

@themarch you first setup your account in NA region, but then set up in EU. I've applied the signed certificate to your account in EU so you should now be able to setup fleet-telemetry.

patrickdemers6 commented 1 month ago

@Martucci98 you are passing a third-party token to the fleet_telemetry_errors endpoint. It requires a partner token. Please see the Authentication section of the docs to learn the differences between these tokens.

themarch commented 1 month ago

Thanks a lot @patrickdemers6, it's done for this part.

Just one very strange thing. I got this when I wanted to add the public key to the vehicle. However, I do have access to this vehicle, and I can make API calls on it etc. And I've already done the ‘third_party’ and ‘authorization_code’ parts. (also with vehicle_device_data scope)

Maybe it's another zone problem? (for the translation of the pictures it's : The vehicle cannot be shared. Adding a virtual key for ‘bib-data.fr’ is prohibited because you have not granted ‘bib-data.fr’ access to your account.)

Capture d’écran 2024-05-27 à 11 47 47