bassmaster187 / TeslaLogger

TeslaLogger is a self hosted data logger for your Tesla Model S/3/X/Y. Actually it supports RaspberryPi 3B, 3B+, 4B, Docker and Synology NAS.
https://www.teslalogger.de
GNU General Public License v3.0
518 stars 171 forks source link

Tesla Fleet API, can't add my car (dropdown empty) #1288

Open josefzahner opened 6 months ago

josefzahner commented 6 months ago

When I try to add my vehicle via Tesla Fleet API I get an exception on step 4, so my dropdown menu which should contain the VIN is empty... any ideas what could be the issue?

Screenshot 2024-05-23 at 00 24 04

Log:


23.05.2024 00:24:15 : #-1[Thread Pool Worker:68]: Update fleetAPIaddress / Value: https://fleet-api.prd.eu.vn.cloud.tesla.com/
23.05.2024 00:24:15 : #-1[Thread Pool Worker:68]: FleetApiAddress: https://fleet-api.prd.eu.vn.cloud.tesla.com/
23.05.2024 00:24:15 : #-1[Thread Pool Worker:68]: Update fleetAPIaddress / Value: https://fleet-api.prd.eu.vn.cloud.tesla.com/
23.05.2024 00:24:26 : #-1[Thread Pool Worker:62]: Timeout: vehicle_data?endpoints=vehicle_state&let_sleep=true
23.05.2024 00:24:26 : System.AggregateException: One or more errors occurred. (A task was canceled.) ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <533173d24dae460899d2b10975534bb0>:0
at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <533173d24dae460899d2b10975534bb0>:0
at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in <533173d24dae460899d2b10975534bb0>:0
at TeslaLogger.WebHelper.DoGetVehiclesRequest (System.String& resultContent, System.Net.Http.HttpClient client, System.String adresse, System.Threading.Tasks.Task`1[System.Net.Http.HttpResponseMessage]& resultTask, System.Net.Http.HttpResponseMessage& result) [0x00075] in :0
at TeslaLogger.WebHelper.GetAllVehicles (System.String& resultContent, Newtonsoft.Json.Linq.JArray& vehicles, System.Boolean throwExceptionOnUnauthorized, System.Boolean doNotCache) [0x000f4] in :0
at TeslaLogger.WebServer.Admin_GetCarsFromAccount (System.Net.HttpListenerRequest request, System.Net.HttpListenerResponse response, System.Boolean fleetAPI) [0x0013d] in :0
---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---```
bassmaster187 commented 6 months ago

What Model do you have?

josefzahner commented 6 months ago

Model Y Performance from June 2023

josefzahner commented 6 months ago

Btw. git clone from yesterday and running on docker on my Synology NAS

bassmaster187 commented 6 months ago

Could you please retry getting a new token to make sure it wasn't a server problem.

josefzahner commented 6 months ago

Just checked, problem persists.... Token generation works, but no VIN available.

josefzahner commented 6 months ago

I've tried it again on fresh installed Raspberry Pi 4, but of course again with the Docker setup. Exactly the same behaviour as on my Synology. Dropdown empty :-(

josefzahner commented 6 months ago

Adding the car by "In local browser" works, dropdown with VIN filled there. However I don't know how long this will work or if it does (haven't driven until now)

jaimebennett commented 5 months ago

I have this same issue with the newest build. Can I add the vehicle manually to the DB?

andrelx commented 4 months ago

Same issue here (or so I think). I have sold my previous Tesla and it has been removed from my Tesla account. I now have only the new one on my Tesla account. When I authenticate, it comes back with an empty list for cars.

Capture d’écran 2024-07-28 130931

bassmaster187 commented 4 months ago

could you please send me your logfile

andrelx commented 4 months ago

Just to be sure : is there any sensitive information in the logfile ? I wouldn't want to post publicly something thqat would give access to my car ;-)

bassmaster187 commented 4 months ago

No, everything sensitive is obfuscated. You can send me the logfile by mail.

andrelx commented 4 months ago

I’ve sent you an email to @.***', but not being sure, I resend it by simply replying.

Hi!

Attache is my Teslalogger logfile. Let me give you a little more background. I’m running Teslalogger on a Qnap using Container station / Docker.

On July 26th, I exchanged my Tesla Model 3 LR AWD 2018 for a new 2024 Model 3 Highland LR AWD. And I love it 😉

Obviously, since then, Teslalogger can’t access my old M3 as it is not on my Tesla account anymore. What I’m trying to do is to add my new car to Teslalogger without deleting the old one, preventing the loss of the data I’ve collected for the last 5 ½ year with my previous car.

A couple of questions:

Thank you very much for you fast support – it’s impressive !

André

De : Christian P. @.> Envoyé : 28 juillet 2024 17:47 À : bassmaster187/TeslaLogger @.> Cc : André Laurendeau @.>; Comment @.> Objet : Re: [bassmaster187/TeslaLogger] Tesla Fleet API, can't add my car (dropdown empty) (Issue #1288)

No, everything sensitive is obfuscated. You can send me the logfile by mail.

— Reply to this email directly, view it on GitHubhttps://github.com/bassmaster187/TeslaLogger/issues/1288#issuecomment-2254659498, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABXISCL2MZTWFM35UMTE6ZLZOVRFTAVCNFSM6AAAAABIEP7FDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGY2TSNBZHA. You are receiving this because you commented.Message ID: @.**@.>>

andrelx commented 3 months ago

Any development of this ?

Thanks,

André