-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[E][WiFiClient.cpp:409] read(): fail on fd 55, errno: 104, "Connection reset by peer" #2977
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
i am using the "arduinoespressif32\libraries\HTTPClient\examples\StreamHttpClient" |
Do you have a reproducible test case? Any decoded backtrace? Also please use the issue template for future issues. |
I had a similar issue that occurred only when using the http.post function of the httpclient library (but the error was in the wificlient library, same as with OP). After considerable debugging, I found two things:
Original:
Edit for debugging purposes (that stopped board from crashing):
Here's the error message and decoded backtrace from my problem: Debugging message from a bit earlier in debugging process (so line numbers might not match up as I added several additional debugging log messages in the library), but I don't seem to have a saved later copy of this error msg:
...
...
|
I have a similar error, when I send the wifi credentions by a Portal. My log before the crash:
|
[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. |
int WiFiClient::read(uint8_t *buf, size_t size)
{
int res = -1;
res = _rxBuffer->read(buf, size);
if(_rxBuffer->failed()) {
log_e("fail on fd %d, errno: %d, "%s"", fd(), errno, strerror(errno));
stop();
}
return res;
}
This error caused the device to restart after a while.
I want to know why this problem appears and how to solve it.
The text was updated successfully, but these errors were encountered: