ngardiner / TWCManager

Control power delivered by a Tesla Wall Charger using two wires screwed into its RS-485 terminals.
The Unlicense
126 stars 55 forks source link

TWCManager webinterface not working without internet #536

Open RichieB2B opened 7 months ago

RichieB2B commented 7 months ago

Today my internet connection was down for a few hours. I wanted to switch TWCManager to the Charge Now profile but the web interface was not responding. Obviously the logfile has occasional connection errors to owner-api.teslamotors.com but this should not prevent the local web interface from responding.

After the HTTP/1.0 200 OK and headers there was a long wait and the connection was simply dropped.

$ curl -v http://10.1.2.3:8808/
*   Trying 10.1.2.3:8808...
* Connected to 10.1.2.3 (10.1.2.3) port 8808 (#0)
> GET / HTTP/1.1
> Host: 10.1.2.3:8808
> User-Agent: curl/8.1.2
> Accept: */*
> 
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: BaseHTTP/0.6 Python/3.9.2
< Date: Fri, 17 Nov 2023 09:28:34 GMT
< Content-type: text/html
< 
* Closing connection 0
RichieB2B commented 3 months ago

Hopefully fixed by 14e07a5636264d2f06cf366ed74fa45e06129875