Web UI fails in Chrome/Edge with net::ERR_CONNECTION_RESET, Firefox works
The Problem
Describe the bug
After the latest update, I can no longer open the AI-on-the-edge-device web interface in Chrome or Edge. The page fails to load and Chrome/Edge show net::ERR_CONNECTION_RESET in the developer tools.
The same device and web interface still work in Firefox.
The REST/API endpoints are still reachable in Chrome, for example:
/json
/rssi
/sysinfoSo the device itself, Wi-Fi connection and API seem to be working. The problem appears to be limited to serving the Web UI to Chromium-based browsers.
Devices affected
I have 3 AI-on-the-edge-device ESP32 units running. All 3 show the same behavior after the update.
Browser behavior
Chrome / Edge:
- Web UI does not load
- Developer tools show:
net::ERR_CONNECTION_RESET /jsonworks- individual static files such as
/firework.csscan be opened directly
Firefox:
- Web UI loads normally
- Firmware version and Web UI version shown in the UI match
What I tested
Firmware version and Web UI version match in Firefox.
Direct API endpoints work in Chrome:
http://<device-ip>/json
http://<device-ip>/rssi
http://<device-ip>/sysinfoDirectly opening CSS files works in both Chrome and Firefox:
http://<device-ip>/firework.css
http://<device-ip>/firework.css?v=<commit-code>However, requesting the main page with curl already shows a connection reset:
curl.exe -v http://<device-ip>/index.html -o "$env:TEMP\ai-edge-index.html"Output excerpt:
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Type: text/html
< Transfer-Encoding: chunked
< Cache-Control: max-age=43200
< Content-Encoding: gzip
<
{ [1384 bytes data]
* Recv failure: Connection was reset
100 1379 0 1379 0 0 8661 0 --:--:-- --:--:-- --:--:-- 8672
* closing connection #0Opening /index.html.gz directly downloads a gzip archive, and the contained index.html appears to be valid.
Current suspicion
The issue seems related to serving the main Web UI document with:
Content-Encoding: gzip
Transfer-Encoding: chunkedThe ESP32 appears to send HTTP/1.1 200 OK, starts transferring the gzip-compressed index.html, but then resets the TCP connection. Firefox seems to tolerate this, while Chrome and Edge fail with ERR_CONNECTION_RESET.
Expected behavior
The Web UI should load normally in Chrome and Edge, as it did before the update.
Actual behavior
Chrome and Edge fail to load the Web UI with net::ERR_CONNECTION_RESET, while Firefox still works.
Additional context
Since /json and other API endpoints work in Chrome, the meter reading functionality itself seems unaffected. This appears to be limited to the Web UI / static file serving behavior.
Version
16.1.0
Logfile
emptyExpected Behavior
No response
Screenshots
No response
Additional Context
No response
Source: jomjol/AI-on-the-edge-device