Yurik72/ESPHap

Initial load errors in webpage

Opened this issue · 6 comments

chrwh commented

Hi,
When ever I load the webpage, I get sporadic feedback for the stages of the the sliders. They does not get the correct response. In the picture all sliders should be off, when the page is loaded, because all switches are off in homekit.
If I then turn all the sliders to off, and then start to use them, they works correctly, until the next time you reload the page.

Do you have any pointers where I should start to look for my mistakes first?

Hardware M5Stack Grey

Initial load error

chrwh commented

Hmm,
It works without any issues in Firefox, but with Edge and Chrome it has the issues above.

chrwh commented

Found it, it's an issue in Webserver.cpp in ESP32 V.1.0.4, it has been fixed from V.1.0.5, but that version does not seems to work on M5Stack
// Fix for issue with Chrome based browsers: espressif/arduino-esp32#3652
// if (_currentClient.connected()) {
// _currentStatus = HC_WAIT_CLOSE;
// _statusChange = millis();
// keepCurrentClient = true;
// }

chrwh commented

OK, that sounds good, let me know if I should make tests for you :-)

Hi all,

just update to V3.3.2 and it seem not fixed for me !
my web site do a GET request to the ESP32 every 2 seconds

all requests are 200 OK then every 10 or 15 seconds, the server seem hangs ..
request are (pending) for some seconds, maybe 10, then served or timeout for certain

using Chrome, Brave or Edge
image

please any advice ?
thanks, regards

chrwh commented

Hi,
I stil lhave the same issues aswell. I would alsp really like a solution to this :-)
Best regards,
Christian