-
Notifications
You must be signed in to change notification settings - Fork 7.6k
FSBrowser problem #3652
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
Comments
@pipi61 post the console output of the ESP32, the FSBrower sketch will output error messages through the Serial connection. |
Hi @pipi61. your code has some compilation issue. |
Yes, I'm sorry. I used the insert code tag, copy-paste, then bad results. I attached the test.ino file to the ZIP file |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
I am also having this issue in Chrome with just the original script out of the box. The don't show, though when inspected in chrome, the files themselves look complete. Chrome reads " Failed to load resource: net::ERR_CONNECTION_RESET list?dir=/:1 " The file received as "list?dir=/:1":
|
if (_currentClient.available()) {
if (_parseRequest(_currentClient)) {
// because HTTP_MAX_SEND_WAIT is expressed in milliseconds,
// it must be divided by 1000
_currentClient.setTimeout(HTTP_MAX_SEND_WAIT / 1000);
_contentLength = CONTENT_LENGTH_NOT_SET;
_handleRequest();
/* this comment out for chrome/maxthon browsers
if (_currentClient.connected()) {
_currentStatus = HC_WAIT_CLOSE;
_statusChange = millis();
keepCurrentClient = true;
} */
} Try this comment out in webserver.cpp |
It works every time now! Thank you!! Fixed file attached: |
This issue has bugged me for a couple of days! I tried to serve a Vue.js application from SPIFFS on the ESP32. It works flawlessly on Firefox but on Chrome it only loads a couple of the files and the rest fails with 'connection reset'. Tried all kinds of stuff like using FFAT instead (horrible broken image generators) and trying WebServer-Async (but that one regularly restarts my ESP because it seems it cannot deal with SoftwareSerial running at the same time). Eventually Google brought me here and I tried to comment out the lines as suggested above, and boom, all is OK! But why does commenting out help Chrome to function properly? Aren't the lines important after all? Why doesn't it affect Firefox? |
this is some legacy code from 8266. I wonder what was the purpose of that code? |
Is this fix going to make it to the master branch?? |
November 05 2020 - This bug takes me a lot of time, same problem here ( works ok with ESP8266, fails with ESP32 using same sketch with a little diferente as #if defined ESP32/8266 ), after comment lines, works fine! why not fixed at this moment? |
Please fix the master branch! I've lost so much time (like a lot of other people) with this issue. |
done. 378b6ac |
How do I get this on my ESP32? Can I update the Webserver package in Arduino IDE somehow? |
Fixed in development release |
It seems I already have this version... When I look at the source in C:\Users\mvrm\AppData\Local\Arduino15\packages\esp32\hardware\espressif\esp32\libraries\WebServer\src\WebServer.cpp then I see this, with the commented part at line 316:
Though I still have the issue when serving multiple large files (Angular app) from an SD card. Here are some parts of the code I wrote in Arduino IDE 1.8.9.
other:
sdCard.serve method:
This is my complete sd-card.cpp file which is used to serve static files:
What can I do to prevent these ERR_CONNECTION_RESET failures? |
Hardware:
Board: ESP32 wroom32
Core Installation/update date: 11/11/2019
IDE name: Arduino IDE 188
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 81
Description:
Original example libraries\WebServer\examples\FSBrowser\ not working properly in the chrome and the maxthon browser, the left filelist window empty,
but correct in firefox
http://192.168.0.110/edit
in browser development console error message:
Failed to load resource: net::ERR_CONNECTION_RESET list?dir=/:1
attach screenshot

Thank You!
Istvan
The text was updated successfully, but these errors were encountered: