Replies: 1 comment
-
|
As always once you ask for help, you figure it out. Apparently the configuration with environment with the tokens is only for the subscription API of myteslamate. So I had to manually add other further environment variables to point my teslamate docker install to the right Tesla API server and than I was able to use my access token and refresh token. This is the teslamate docker config part which works now: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I trying to setup first time a Teslamate docker and using the the myteslamate API token (see environment vars in my docker compose yml). After I sign in the teslamate frontend I am getting the green bar login successfully but no car is showing up. In the docker logs I see the error "[warning] Could not get vehicles: :unauthorized". I have also refreshed my token already to rule out that the token has expired but I am getting the same error. Manually pulling the vehicle data from the API Teslamate works just fine.
What can be the issue? I did some fair research on the web but could not figure out the problem. I tried also the Tesla Owner API directly with Access and Refresh token, but there I am getting the error NXDomain after logging in as it seems Teslamate try to access the fleet auth tesla website but this domain does not exists :-/
This my docker-composeyml file:
This the docker error log and some lines around:
2025-12-06 09:22:23.036 [info] Running TeslaMateWeb.Endpoint with cowboy 2.13.0 at :::4000 (http)
2025-12-06 09:22:23.039 [info] Access TeslaMateWeb.Endpoint at http://localhost
2025-12-06 09:22:23.878 [info] MQTT connection has been established
2025-12-06 09:22:26.076 [info] tzdata release in place is from a file last modified Thu, 16 Jan 2025 17:10:51 GMT. Release file on server was last modified Sat, 22 Mar 2025 21:45:31 GMT.
2025-12-06 09:22:26.835 [info] Tzdata has updated the release from 2025a to 2025b
2025-12-06 09:22:30.650 [info] GET /settings
2025-12-06 09:22:30.660 [info] Sent 200 in 10ms
2025-12-06 09:22:44.213 [info] GET /
2025-12-06 09:22:44.216 [info] Sent 302 in 2ms
2025-12-06 09:22:44.244 [info] GET /sign_in
2025-12-06 09:22:44.247 [info] Sent 200 in 2ms
2025-12-06 09:23:35.007 [info] POST https://api.myteslamate.com/api/oauth2/v3/token?token=XXX -> 200 (1496.441 ms)
2025-12-06 09:23:35.023 [info] Scheduling token refresh in 6 h
2025-12-06 09:23:35.334 [info] GET /
2025-12-06 09:23:35.634 [info] GET https://api.myteslamate.com/api/1/products?token=XXX-> 401 (621.071 ms)
2025-12-06 09:23:35.635 [info] Refreshing access token ...
2025-12-06 09:23:35.635 [warning] Could not get vehicles: :unauthorized
2025-12-06 09:23:35.636 [info] Sent 200 in 302ms
2025-12-06 09:23:36.809 [info] POST https://api.myteslamate.com/api/oauth2/v3/token?token=XXX -> 200 (1174.027 ms)
2025-12-06 09:23:36.818 [info] Scheduling token refresh in 6 h
2025-12-06 09:23:49.767 [info] GET /
2025-12-06 09:23:49.769 [info] Sent 200 in 2ms
Best regards,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions