You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the ESP Async WebServer to receive POST Json data by a web page submission from a IOT (NodeMCU ESP8266).
In this case, the callback receiving the POSTed data is fired twice. The server generates chunks of data 154 bytes long, at max. Since the whole data is 174 bytes long, there is a first chunk 154 bytes long and a second chunk 20 bytes long.
At the first chunk, all is going as expected, while the second chunk appears empty and the last part of data is lost.
The printout of the code below shows the data loss.
json body len,index,total = 154, 0, 174 <--- chunk #1 is OK
START looping on jdoc objects
key:A value:11111111
key:B value:22222222
key:C value:33333333
key:D value:44444444
key:E value:5555555
key:F value:66666666
key:G value:7777777
key:H value:8888888
key:I value:9999999
key:J value:10
key:K value:11
key:L value:12
END looping on jdoc objects
json body len,index,total = 20, 154, 174 <--- chunk #2 EMPTY!
START looping on jdoc objects
END looping on jdoc objects
CODE (arduino IDE 2.3.2, ArduinoJson 7.2.0, ESP Async WebServer 3.3.20)
I'm using the ESP Async WebServer to receive POST Json data by a web page submission from a IOT (NodeMCU ESP8266).
In this case, the callback receiving the POSTed data is fired twice. The server generates chunks of data 154 bytes long, at max. Since the whole data is 174 bytes long, there is a first chunk 154 bytes long and a second chunk 20 bytes long.
At the first chunk, all is going as expected, while the second chunk appears empty and the last part of data is lost.
The printout of the code below shows the data loss.
json body len,index,total = 20, 154, 174 <--- chunk #2 EMPTY!
START looping on jdoc objects
END looping on jdoc objects
CODE (arduino IDE 2.3.2, ArduinoJson 7.2.0, ESP Async WebServer 3.3.20)
The text was updated successfully, but these errors were encountered: