teslams icon indicating copy to clipboard operation
teslams copied to clipboard

Streaming API

Open jkropp opened this issue 5 years ago • 7 comments

Streaming API not working, html bad request error.

jkropp avatar Mar 12 '19 14:03 jkropp

Seeing the same thing.

bendinwire avatar Mar 12 '19 15:03 bendinwire

I'm not sure if this is what you are getting, but this began about 6 days ago or so. The 502 contines without end. Cut & paste from streaming startup: timestamp: 1552955768856 } 18 Mar 20:37:07 - getting charge state Aux data 18 Mar 20:37:07 - getting climate state Aux data 18 Mar 20:38:07 - getting charge state Aux data 18 Mar 20:38:07 - getting climate state Aux data 18 Mar 20:38:13 - Polling again because poll returned HTTP error:Error: ESOCKETTIMEDOUT 18 Mar 20:38:23 - Bad timestamp () 18 Mar 20:38:23 - Unexpected problem with request: Response status code = 502 Error code = null Polling again in 10 seconds...

TheSpaceCowboy avatar Mar 19 '19 00:03 TheSpaceCowboy

There's probably an error message in the thing that starts with "<html>\n" ... which, btw, is visible in the github email and not above because you didn't quote the <html>

wumpus avatar Mar 19 '19 23:03 wumpus

True, there was an html in the bad timestamp message, but it disappeared in the cut and paste. The error message was the 502 error.

TheSpaceCowboy avatar Mar 20 '19 01:03 TheSpaceCowboy

Well, if the error message wasn't informative, then perhaps it's worth watching with the Tesla app at the same time you're making this call. If the app continues working, then perhaps you've triggered some kind of defense, or, the Tesla app isn't using that interface the same way these days.

wumpus avatar Mar 20 '19 03:03 wumpus

I had this start on March 7th. I have not yet discovered the real cause but I have been streaming my telemetry for well over a year (including needing updates a few times) but this time I can't seem to find the problem. I still can control the car (including turning on the climate system in the morning)

MichaelSinz avatar Mar 23 '19 01:03 MichaelSinz

PS - the error returned is:

<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

MichaelSinz avatar Mar 23 '19 01:03 MichaelSinz