Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suddenly - ""error":"Unable to load cars."" #224

Closed
chamsters opened this issue Jun 10, 2023 · 2 comments
Closed

Suddenly - ""error":"Unable to load cars."" #224

chamsters opened this issue Jun 10, 2023 · 2 comments
Assignees

Comments

@chamsters
Copy link

chamsters commented Jun 10, 2023

Hi there!

As of 1 day ago I'm suddenly seeing the error "error":"Unable to load cars." as a result in the api call.

Log shows

[GIN] 2023/06/10 - 12:28:01 | 200 |       29.59µs |   192.168.1.136 | GET      "/api/v1/cars/1/status"
2023/06/10 12:28:36.963039 [error] TeslaMateAPICarsStatusV1 - (/api/v1/cars/2/status). Unable to load cars.; sql: Scan error on column index 1, name "name": converting NULL to string is unsupported
[GIN] 2023/06/10 - 12:28:36 | 200 |     715.882µs |   192.168.1.198 | GET      "/api/v1/cars/2/status"
2023/06/10 12:28:01.867631 [error] TeslaMateAPICarsStatusV1 - (/api/v1/cars/1/status). no info on this car ID; -
[GIN] 2023/06/10 - 12:27:01 | 200 |      30.612µs |   192.168.1.136 | GET      "/api/v1/cars/1/status"
2023/06/10 12:29:01.903511 [error] TeslaMateAPICarsStatusV1 - (/api/v1/cars/1/status). no info on this car ID; -
[GIN] 2023/06/10 - 12:29:01 | 200 |      30.542µs |   192.168.1.136 | GET      "/api/v1/cars/1/status"

I've tried a full reboot of the node and TeslaMate. TeslaMate data showing just fine.

On v 1.16.1

Any suggestions? Thanks!

@haexpo
Copy link

haexpo commented Jun 11, 2023

Same problem here.

Log shows:

teslamate_1     | 2023-06-11 11:45:27.618 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/*removed*/vehicle_data -> 408 (9104.728 ms)
teslamate_1     | 2023-06-11 11:45:27.619 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1     | 2023-06-11 11:45:27.619 car_id=2 [error] Error / :unknown
teslamate_1     | 2023-06-11 11:45:55.218 car_id=2 [info] Suspending logging
teslamateapi_1  | [GIN] 2023/06/10 - 19:01:21 | 200 |     1.97747ms | 192.168.XXX.XXX | GET      "/api/v1/cars/2/status"
teslamateapi_1  | 2023/06/10 19:01:25.294859 [error] TeslaMateAPICarsStatusV1 - (/api/v1/cars/2/status). Unable to load cars.; sql: Scan error on column index 1, name "name": converting NULL to string is unsupported

@tobiasehlert tobiasehlert self-assigned this Jun 12, 2023
@tobiasehlert
Copy link
Owner

Hi @chamsters and @haexpo,

From the output of @haexpo to tell it seems to be TeslaMate that has issues itself since it gets a 408 response from the owner-api. TeslaMateApi uses the PostgreSQL database in which TeslaMate feed information like vehicle information and it would be there where the issue would be.

I've noticed the same thing on my setup and I encountered the same issue. After upgrading to the latest TeslaMate version (I use edge) it works fine. It's the commit teslamate-org/teslamate@6af97ba that is required for TeslaMate to behave correct again, so we'll have to wait for a new release of TeslaMate to be published or you can temporarily switch to using edge.

Some issues/discussions on TeslaMate repo:
teslamate-org/teslamate#3183
teslamate-org/teslamate#3234
teslamate-org/teslamate#3238

Same issue has also been reported in the tesla-api repo from timdoor:
timdorr/tesla-api#728

I'll set the issue to close, but get back to me if you have any further questions.

Regards,
Tobias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants