alandtse / tesla

Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Apache License 2.0
601 stars 99 forks source link

can't authenticate - Unknown error 412 #1043

Open naps62 opened 2 months ago

naps62 commented 2 months ago

Is there an existing issue for this?

I have read about the Fleet API and understand I may need to use it

Version of the Tesla component

3.24.1

Version of the Tesla car software

2024.26.7 b7e14964b659

Model

Model Y

Current Behavior

I've set up everything regarding the Fleet API Proxy. Had some trouble with that setup, but I believe that side is now working.

However, I can't authenticate with this component, always getting the following: image

Some searches suggested this could be due to rate limiting, so I have tried leaving it on pause for a day and try again. the result was the same

Expected Behavior

succesful authentication

Debug logs

Logger: custom_components.tesla_custom
Source: custom_components/tesla_custom/__init__.py:220
integration: Tesla Custom Integration (documentation, issues)
First occurred: 4:36:43 PM (3 occurrences)
Last logged: 4:56:10 PM
Unable to communicate with Tesla API: UNKNOWN_ERROR_412

Anything else?

Debug log of the Tesla HTTP Proxy add-on:

[16:45:35] werkzeug:INFO: 172.30.32.2 - - [16/Sep/2024 16:45:35] "GET / HTTP/1.1" 200 -
[16:45:36] webui:DEBUG: Callback URL: https://tesla.n62.casa/callback?locale=en-US&code=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&state=abd938523c&issuer=https%3A%2F%2Fauth.tesla.com%2Foauth2%2Fv3
[16:45:36] webui:DEBUG: code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[16:45:36] urllib3.connectionpool:DEBUG: Starting new HTTPS connection (1): auth.tesla.com:443
[16:45:37] urllib3.connectionpool:DEBUG: https://auth.tesla.com:443 "POST /oauth2/v3/token HTTP/1.1" 200 2273
[16:45:37] webui:WARNING: Obtained refresh token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[16:45:37] werkzeug:INFO: 172.30.32.2 - - [16/Sep/2024 16:45:37] "GET /callback?callback_url=https://tesla.n62.casa/callback?locale%3Den-US%26code%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX%26state%3Dabd938523c%26issuer%3Dhttps%253A%252F%252Fauth.tesla.com%252Foauth2%252Fv3 HTTP/1.1" 200 -
[16:45:39] werkzeug:INFO: 172.30.32.2 - - [16/Sep/2024 16:45:39] "GET / HTTP/1.1" 200 -
2024-09-16T16:46:25+01:00 [info ] Received GET request for /api/1/products
2024-09-16T16:46:25+01:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
2024-09-16T16:46:28+01:00 [info ] Received GET request for /api/1/products
2024-09-16T16:46:28+01:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
2024-09-16T16:46:31+01:00 [info ] Received GET request for /api/1/products
2024-09-16T16:46:31+01:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
2024-09-16T16:46:36+01:00 [info ] Received GET request for /api/1/products
2024-09-16T16:46:36+01:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
2024-09-16T16:46:40+01:00 [info ] Received GET request for /api/1/products
2024-09-16T16:46:40+01:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
naps62 commented 1 month ago

@cydrezz nope. unfortunately doesn't solve it for me

naps62 commented 1 month ago

That's what I have been doing this whole time