teslamotors / vehicle-command

Apache License 2.0
428 stars 93 forks source link

Unable to Share Vehicle - Problem with enrolling Public Key #53

Open danielgUpside opened 10 months ago

danielgUpside commented 10 months ago

I'm attempting to enroll a public key onto a UK based tesla. However, when I go through to tesla.com/_ak/<your-domain> and select finish setup, it redirects to the tesla app and shows the following error.

IMG_6030

I've managed to register the public key using the POST /api/1/partner_accounts endpoint and its successfully ran. However I also then called the GET /api/1/partner_accounts/public_key endpoint which returns the following error message:

user out of region, use base URL: https://fleet-api.prd.na.vn.cloud.tesla.com, see https://developer.tesla.com/docs/fleet-api#regional-requirements.

I wonder if there is issues with registering public keys on EU/UK based vehicles. Has anyone else had this issue?

L480 commented 10 months ago

Had the same issue after only posting the registration against the North American endpoint. Make sure to register against https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/partner_accounts instead of https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/partner_accounts if your vehicle is located in EMEA.

sethterashima commented 7 months ago

Trying to close out old issues. There have been a few changes to the mobile app since this Issue was created. Are you still encountering it? If not, please close. Otherwise I can forward to the mobile app team.

itsMeDavidV commented 7 months ago

@sethterashima "Finish Setup" button in Virtual Key webpage still does not work. It just reloads the webpage.

^ This causes a lot of frustration for many users as they expect it to work.

Also on iOS if the user does not have Safari set as their default browser the Tesla app won't open when VK link is opened.

itsMeDavidV commented 7 months ago

@sethterashima "Finish Setup" button in Virtual Key webpage still does not work. It just reloads the webpage.

Video: https://github.com/teslamotors/vehicle-command/assets/12491192/d1f8c893-6190-47ec-ae5a-95c8d82468ac

Bu-TianLie commented 4 months ago

tesla.com/_ak/ must be complete, e.g. https://www.tesla.cn/_ak/www.example.com; I didn't fill in the "www" the first time I tested, and then couldn't share the vehicle, indicating that the program failed to register. You also need to pay attention to what "https://www.tesla.cn" is in your area. In my case it's "https://www.tesla.cn", but in most areas it's https://www.tesla.com.