502 Bad Gateway
Closed this issue · 2 comments
zond commented
I'm running
client, err := tesla.NewClient(
&tesla.Auth{
ClientID: "...",
ClientSecret: "...",
Email: "...",
Password: "...",
})
if err != nil {
logf("NewClient(...): %v, %v", client, err)
panic(err)
}
vehicles, err := client.Vehicles()
if err != nil {
logf("Vehicles(): %v, %v", vehicles, err)
panic(err)
}
if len(vehicles) != 1 {
logf("not exactly 1 vehicle")
panic("not exactly 1 vehicle")
}
vehicle := vehicles[0]
status, err := vehicle.MobileEnabled()
if err != nil {
logf("MobileEnabled(): %v, %v", status, err)
panic(err)
}
where I get the following log output:
MobileEnabled(): false, 502 Bad Gateway
Any idea if I'm doing something wrong, or if Tesla changed their API again?
zond commented
Hm, now I get the same 502 for NewClient
as well. Weird.
zond commented
Right, after trying it with curl it seems that it's just that the Tesla servers are buggy pieces of crap.
I think I'll hold off on using their API until their service works more than half the time...