HTTPClient writeToStream method reporting Stream write error as too few bytes written due to bug #9997
Closed
1 task done
Labels
Status: Awaiting triage
Issue is waiting for triage
Board
ESP32 Dev Module
Device Description
plain module on breadboard
Hardware Configuration
No
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
not specific
PSRAM enabled
yes
Upload speed
not specific
Description
Line 1388 in HTTPClient.cpp is:
len -= readBytes;
It should be:
len -= bytesRead;
as
bytesRead
can be less thanreadBytes
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: