Skip to content

TeslaApi.Error 403 on v4.0.0 #5399

Description

@gurpreetz

Is there an existing issue for this?

  • I have checked the existing issues and discussions, and I can confirm that there are no duplicates.

What happened?

I noticed teslamate was throwing errors, and upgraded to v4.0.0
I'm running on a raspberry pi 5 - so the host is compativle with this version.

I now consistently see:

teslamate-1  | 2026-06-13 13:25:01.344 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744612044544479 -> 403 (64.423 ms)
teslamate-1  | 2026-06-13 13:25:01.344 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:25:01.344 car_id=1 [error] Error / :unknown
teslamate-1  | 2026-06-13 13:25:02.643 [info] MQTT connection has been established
teslamate-1  | 2026-06-13 13:25:31.415 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744612044544479 -> 403 (70.400 ms)
teslamate-1  | 2026-06-13 13:25:31.415 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:25:31.415 car_id=1 [error] Error / :unknown
teslamate-1  | 2026-06-13 13:26:01.468 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744612044544479 -> 403 (51.585 ms)
teslamate-1  | 2026-06-13 13:26:01.468 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:26:01.468 car_id=1 [error] Error / :unknown

Expected Behavior

Teslamate comes online and connects

Can the issue reliably be reproduced?

Yes

Steps To Reproduce the issue

  1. Run teslamate v4.0.0

Relevant log output

teslamate-1  | 2026-06-13 13:24:56.762 [info] Migrations already up
teslamate-1  | 2026-06-13 13:25:00.499 [info] System Info: Erlang/OTP 28 (jit)
teslamate-1  | 2026-06-13 13:25:00.499 [info] Version: 4.0.0
teslamate-1  | 2026-06-13 13:25:00.552 [info] PostgreSQL version 18.4 is compatible (18.x series).
teslamate-1  | 2026-06-13 13:25:00.553 [info] [proxy] read NOMINATIM_PROXY=nil
teslamate-1  | 2026-06-13 13:25:00.553 [info] [proxy] NOMINATIM_PROXY unset -> fallback: no proxy
teslamate-1  | 2026-06-13 13:25:01.089 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (505.904 ms)
teslamate-1  | 2026-06-13 13:25:01.089 [info] Refreshed api tokens
teslamate-1  | 2026-06-13 13:25:01.096 [info] Scheduling token refresh in 6 h
teslamate-1  | 2026-06-13 13:25:01.106 [info] Running TeslaMateWeb.Endpoint with cowboy 2.15.0 at :::4000 (http)
teslamate-1  | 2026-06-13 13:25:01.107 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2026-06-13 13:25:01.264 [info] GET https://owner-api.teslamotors.com/api/1/products -> 403 (156.208 ms)
teslamate-1  | 2026-06-13 13:25:01.264 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:25:01.264 [warning] Could not get vehicles: :unknown
teslamate-1  | 2026-06-13 13:25:01.269 [warning] Using fallback vehicles:
teslamate-1  |
teslamate-1  | [
teslamate-1  |   %TeslaApi.Vehicle{
teslamate-1  |     id: 3744612044544479,
teslamate-1  |     vehicle_id: 2252229481104094,
teslamate-1  |     vin: "REDACTED",
teslamate-1  |     tokens: [],
teslamate-1  |     state: "unknown",
teslamate-1  |     option_codes: [],
teslamate-1  |     in_service: false,
teslamate-1  |     display_name: "REDACTED",
teslamate-1  |     color: nil,
teslamate-1  |     calendar_enabled: nil,
teslamate-1  |     backseat_token: nil,
teslamate-1  |     backseat_token_updated_at: nil,
teslamate-1  |     api_version: nil,
teslamate-1  |     charge_state: nil,
teslamate-1  |     climate_state: nil,
teslamate-1  |     drive_state: nil,
teslamate-1  |     gui_settings: nil,
teslamate-1  |     vehicle_config: nil,
teslamate-1  |     vehicle_state: nil
teslamate-1  |   },
teslamate-1  |   %TeslaApi.Vehicle{
teslamate-1  |     id: 3744144263541238,
teslamate-1  |     vehicle_id: 2252452116097783,
teslamate-1  |     vin: "REDACTED",
teslamate-1  |     tokens: [],
teslamate-1  |     state: "unknown",
teslamate-1  |     option_codes: [],
teslamate-1  |     in_service: false,
teslamate-1  |     display_name: nil,
teslamate-1  |     color: nil,
teslamate-1  |     calendar_enabled: nil,
teslamate-1  |     backseat_token: nil,
teslamate-1  |     backseat_token_updated_at: nil,
teslamate-1  |     api_version: nil,
teslamate-1  |     charge_state: nil,
teslamate-1  |     climate_state: nil,
teslamate-1  |     drive_state: nil,
teslamate-1  |     gui_settings: nil,
teslamate-1  |     vehicle_config: nil,
teslamate-1  |     vehicle_state: nil
teslamate-1  |   }
teslamate-1  | ]
teslamate-1  | 2026-06-13 13:25:01.269 [info] Starting logger for 'REDACTED'
teslamate-1  | 2026-06-13 13:25:01.344 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744612044544479 -> 403 (64.423 ms)
teslamate-1  | 2026-06-13 13:25:01.344 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:25:01.344 car_id=1 [error] Error / :unknown
teslamate-1  | 2026-06-13 13:25:02.643 [info] MQTT connection has been established
teslamate-1  | 2026-06-13 13:25:31.415 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744612044544479 -> 403 (70.400 ms)
teslamate-1  | 2026-06-13 13:25:31.415 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:25:31.415 car_id=1 [error] Error / :unknown
teslamate-1  | 2026-06-13 13:26:01.468 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744612044544479 -> 403 (51.585 ms)
teslamate-1  | 2026-06-13 13:26:01.468 [warning] TeslaApi.Error / %{"error" => "forbidden, see https://developer.tesla.com/docs/fleet-api", "error_description" => "", "response" => nil}
teslamate-1  | 2026-06-13 13:26:01.468 car_id=1 [error] Error / :unknown

Screenshots

No response

Additional data

No response

Type of installation

Docker (https://docs.teslamate.org/docs/installation/docker/)

Version

v4.0.0

PostgreSQL version

postgres:18-trixie

Are you running latest major supported PostgreSQL version?

  • I run the latest major supported PostgreSQL version

Are you using a reverse Proxy for TeslaMate?

No

Details about your reverse Proxy if applicable

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions