-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
serveStatic() triggers the watchdog and restarts ESP32. #544
Comments
@GeorgeFlorian I think you have a typo...
Shouldn't there only be one / in the target? Also please capture the console output at the VERBOSE log settings so @me-no-dev can help investigate why async_tcp is triggering the WDT. |
Which one is correct: The typo is only in this thread. After I've pasted the code here I removed one of the back slash. That was the VERBOSE log:
Also, to make the CSS to work I returned to using a handler for it:
Also, each page from the rewrites triggers the watchdog resulting in the same error. Also, not one single HTTP_POST works. Not even the simple |
you have cases where you send two responses/redirects or not at all. Any time you get WDT, means it's your code that is bad :) |
I think it has something to do with the partition size of the SPIFFS. |
Hi, try add: and test, it solved my problem |
Will try. |
[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. |
It didn't help me, I have the same problem, but with AsyncWebServer |
What problems ? I advise you to open a separate issue. |
Hello !
I am trying to clean up my code and as such I am trying to replace all the GET handlers with
Buuut, I'm having no luck. The only page that gets served is the
indexAP.html
and not even this works properly. Only a small part of the CSS works, the image/png doesn't gets served. The ESP32 also restarts after a few seconds on this page with the following errors:Here is the full code:
Rewrites:
serveStatic:
POST handler:
special handler for
/files
pageI've been trying to make it work for the past 3 days. At this point I either get some help or I will let the code like it currently is.
Currently used handlers:
The text was updated successfully, but these errors were encountered: