Comments (8)
that is caused by SPIFFS being filled and needing to wipe blocks in order to fit the new file.
when it hits that point, the process of rearranging and wiping blocks takes enough to trigger the watchdog and reset the sketch. In the regular web server you are running from the loop and the process yields, in async there is no such thing :)
if you upload a clean SPIFFS image to the flash, you will find the upload working fine (till you fill it up again by writing to it)
from espasyncwebserver.
Thank you for your response.
I've tried to isolate the issue and used the following empty handleUpload() to test.
ESP8266 will hang or stop when the index went over 200,000.
There is no useful output but a strange string "$T0b#e6".
I am trying to make GDBSTUB work, so I have no idea what's going on.
void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final)
{
if(!index){ // initial start
if(!_username.length() || request->authenticate(_username.c_str(),_password.c_str()))
_uploadAuthenticated = true;
WiFiUDP::stopAll();
DEBUGF("Update: %s size:%d\n", filename.c_str());
}
if(_uploadAuthenticated && len){
// ESP.wdtDisable(); request->_tempFile.write(data,len); ESP.wdtEnable(10);
DEBUGF("Update:%d - %d\n",index,len);
}
if(_uploadAuthenticated && final){
DEBUGF("Update End.\n");
}
}
from espasyncwebserver.
I'll give this exact code a go. Why do you stop UDP?
from espasyncwebserver.
ok I can confirm some sort of issue
depending on the file, the upload hangs at the exact same progress for each file. Hmmmm
from espasyncwebserver.
I was trying to port ESP8266HTTPUpdateServer and had this issue.
The code is copied from that porting. I wanted to make it clear so delete the commented-out code.
from espasyncwebserver.
I'll figure it out :) interesting thing is that it was working fine for a long time and nothing related has changed recently...
from espasyncwebserver.
please try the latest git :)
from espasyncwebserver.
It's working perfectly now.
Thank you for your effort to create such a wonderful library.
from espasyncwebserver.
Related Issues (20)
- Just heads up: scanNetworks() failing with 2.0.11 in AP mode
- support of SdFat library HOT 1
- Proposal to include this library as part of the arduino-esp32 core
- uploading multiple files raises HEAP and AsyncTCP errors HOT 4
- POST not accepting content type: application/x-www-form-urlencoded HOT 2
- ESP32 reset with connections to mobile devices and GIF files on the web
- Sometime Modbus RTU timeout error
- Socket _messageQueue.length() HOT 1
- Using the Sample CaptivePortal lead to mbedTLS issues
- ACK Timeout is triggered, but I don't know why
- AsyncWebSocketClient forgets to dequeue control messages. Fills up with "pings" and prints "ERROR: Too many messages queued". HOT 1
- simple_server.ino HOT 5
- Serve byte ranges for file
- Request disable sending Content-Length: 0 on HEAD
- Where is ESP8266 SPIFFS File Editor?
- /heap
- dont compile !!!
- fragmentation
- ESP8266 goin down when get JSON string. HOT 1
- where i can get request if i mast send JSON to all connected clients by timer ?! no good exapmles no information! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espasyncwebserver.