Step1 fails: You don't have permission to access "http://auth.tesla.com/oauth2/v3/authorize?" on this server. #328
Replies: 13 comments 22 replies
-
Even fetching from the URI noted in #260 (comment) fails for me:
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem: Step 1 brings back this as a header: HTTP/1.1 403 Forbidden | Connection: close |
Beta Was this translation helpful? Give feedback.
-
I can reliably cause this error, although trying again a bunch eventually lets me thru after some X amount of time which is a big difference when compared to the official Tesla app. After much testing and sniffing the official app's network traffic, the official app always gets through immediately on their first attempt. Mimicking the network calls from my app verbatim does not yield the same result for me. I mimicked everything so it looks the exact same (headers, order, params, etc.) the only difference is the contents of the code_challenge and state. I've dug thru the official app source to decipher what the contents of their state is. If you trace your way backwards thru the transpiled garbage you can see it's Here is the value of Alternatively, The official code is:
|
Beta Was this translation helpful? Give feedback.
-
For me at least, this started happening again yesterday and still going on this morning. |
Beta Was this translation helpful? Give feedback.
-
As another data point, we started seeing this in Python with an aiohttp implementation in the last week or so. The 403 is dependent on client machine. We opened up an issue with aiohttp since it doesn't appear to affect other mechanisms on the impacted machine (python requests, curl, browser). |
Beta Was this translation helpful? Give feedback.
-
Capping TLS to v1.2 worked for me in python. Same request with v1.3 resulted in 403. |
Beta Was this translation helpful? Give feedback.
-
Seems like this morning, this issue started affecting clients a bit wider - all my 3rd party Tesla apps now have this issue, and I'm unable to login to any of them. I've tried changing the user agent string to no avail. I've not been able to figure out how to force iOS / WKWebView to TLS1.2 as suggested above |
Beta Was this translation helpful? Give feedback.
-
Via my Nikola data, it looks like auth is working again, but Tesla is still experiencing super elevated regular API error rates. |
Beta Was this translation helpful? Give feedback.
-
Timeline:
Anyone else find any workarounds? |
Beta Was this translation helpful? Give feedback.
-
Any update ? Still can't access/use the Tesla API. |
Beta Was this translation helpful? Give feedback.
-
I came across the same problem at first. I just changed the domain from "auth.tesla.com" to "auth.tesla.cn" and did some debug, and everything worked. |
Beta Was this translation helpful? Give feedback.
-
I'm currently facing this error since yesterday... Anyone else facing this problem? |
Beta Was this translation helpful? Give feedback.
-
Newly trying this out from Japan and get the Access Denied error. Tried a couple different client IPs, but the same result.
From everything I can find, it looks like an Akamai problem. I tried connection to both "auth.tesla.com" and "auth.tesla.cn". But they both result in the same Access Denied error. |
Beta Was this translation helpful? Give feedback.
-
A golang implementation I've been using for a while and modified in January for the Step 1-4 process stopped working again today. I cannot even get through step 1, fetching https://auth.tesla.com/oauth2/v3/authorize results in:
I've updated it to match what the "Working PHP to Generate Refresh Token (Steps 1-4)" does as closely as I can see, switching from sha256 to sha512 and sending a 12 byte state instead of 20 byte. I'm not setting a User-agent. It still tells me I'm not authorized to even fetch the HTML of the authorization page.
The only occurrences of "You don't have permission to access" in this discussion forum are from two other people who got the message even using the PHP code.
Is this something which the community figured out early on so it just doesn't appear in threads here?
Beta Was this translation helpful? Give feedback.
All reactions