From 8d9db06130d48fc21f777129acaff46d02f42215 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 26 Jan 2024 09:09:23 +0800 Subject: [PATCH 1/2] Fix/workaround '412 Precondition Failed' - https://github.com/teslamate-org/teslamate/pull/3630 Error - Tesla API said: '412 Precondition Failed' at .../Tesla/API.pm line 713. Not an ARRAY reference at .../Tesla/Vehicle.pm line 104. --- share/endpoints.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/endpoints.json b/share/endpoints.json index e6352c1..86e2493 100644 --- a/share/endpoints.json +++ b/share/endpoints.json @@ -636,7 +636,7 @@ "VEHICLE_LIST" : { "TYPE" : "GET", "AUTH" : true, - "URI" : "api/1/vehicles" + "URI" : "api/1/products" }, "ROADSIDE_WARRANTY" : { "TYPE" : "GET", From 070f22c208f6565e57638d348afaa5a32fbb7bd4 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 26 Jan 2024 09:21:19 +0800 Subject: [PATCH 2/2] Fix 'make test' for '412 Precondition Failed' --- t/test_data/endpoints.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/test_data/endpoints.json b/t/test_data/endpoints.json index e6352c1..86e2493 100644 --- a/t/test_data/endpoints.json +++ b/t/test_data/endpoints.json @@ -636,7 +636,7 @@ "VEHICLE_LIST" : { "TYPE" : "GET", "AUTH" : true, - "URI" : "api/1/vehicles" + "URI" : "api/1/products" }, "ROADSIDE_WARRANTY" : { "TYPE" : "GET",