adriankumpf / tesla_auth

Securely generate API tokens for third-party access to your Tesla.
MIT License
388 stars 28 forks source link

Error: Tokens are invalid #75

Open instantdreams opened 5 days ago

instantdreams commented 5 days ago

Using tesla_auth.exe to log in with the following steps:

  1. Download latest release 25-Nov-2023 for Windows

  2. Use 7zip to unpack executable into a folder

  3. Access folder with terminal and run .\tesla_auth.exe

  4. Enter Tesla account username & password

  5. Enter Tesla account MFA passcode

  6. Review Access Token and Refresh Token

  7. Paste Access Token and Refresh Token into Teslamate login page

  8. Receive message "Error: Tokens are invalid" from Teslamate:

    image

Logs from teslamate:

idsvc@id-services:/srv/teslamate$ docker compose logs | tail
teslamate       | 2024-11-08 17:21:41.242 [info] Sent 302 in 1ms
teslamate       | 2024-11-08 17:21:41.252 [info] GET /sign_in
teslamate       | 2024-11-08 17:21:41.256 [info] Sent 200 in 4ms
teslamate       | 2024-11-08 17:21:54.847 [info] GET /
teslamate       | 2024-11-08 17:21:54.849 [info] Sent 302 in 1ms
teslamate       | 2024-11-08 17:21:54.866 [info] GET /sign_in
teslamate       | 2024-11-08 17:21:54.873 [info] Sent 200 in 6ms
teslamate       | 2024-11-08 17:22:08.633 [notice] TLS :client: In state :hello received SERVER ALERT: Fatal - Internal Error
teslamate       |
teslamate       | 2024-11-08 17:22:08.634 [error] POST https://auth.tesla.com/oauth2/v3/token -> error: {:tls_alert, {:internal_error, ~c"TLS client: In state hello received SERVER ALERT: Fatal - Internal Error\n"}} (79.460 ms)