New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLVED - ESP Webserver sometimes returns a blank white page, loop does not always mange handleClient() completely #5802
Comments
I have tried to print the string to the serial monitor with . I noticed the error I got is
I have looked at the
The idea above inspired form Random Nerd Tutorial does not work. I also realized that the problem was not having a 60k chars string because I generated one and sent it with After some reaseraching I landed here and I found the solution. For which I am extremely grateful towards mr @Pablo2048.
I have chunked my page in 5 pieces and each is a string formed by lots of concatenations. No more issues this way. If you are looking for a automatic way to chuck you html webpage, I have made python3 script that does that and returns the chunks in a
I also want to add that it is better to not make a string but plug indirectly the Webpage in the function Not like this
Like this is better because more efficient and it is also faster |
I'm trying to make a simple access point with ESP32 with a webpage displaying networks found; user can connect to a network and webserver displays connection status and power signal of that network.
See pictures
Hardware and system:
This problem is becoming a nightmare because it happens only sometimes. It is a kind of instability. If I refresh the page often the white blank page remains but after some time it goes away without restarting the ESP, but sometimes it comes back.
I have no console error on the browser, just an empty file at root but my server is never supposed to send an empty string.
Steps:
<a href='/' class='button1'>Homepage</a>
-there are no error messages on the browser console
handleClient()
is not completely managed anymore (see pic below). The thing is that if I go back retrying after a while without restarting the ESP I can find that the white page has gone and server is back to normal.If I refresh the webpage it reloads exactly the same output on console, initially it handleclient() and then it does not and get stuck there where I put the red comment in the picture
I have also tried on another network and still sometimes the blank white page nightmare shows. I say that on my network I have a firewall.
I am also printing the free RAM and I see I have plenty.
Hardware:
Board: SparkFun Thing Plus 16M
Core Installation version: 2.0.0
IDE name: Arduino IDE
Flash Frequency: 40Mhz
PSRAM enabled: no (no external RAM)
Upload Speed: 512000
Computer OS: Windows 10
I placed in loop the print of every cycle only for debugging.
If I higher the delay in loop from 2 to 5 or bigger number the problem always represent. When I remove that delay the problem still represent
Debug Messages:
The text was updated successfully, but these errors were encountered: