-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Why do I get an Error msg [E][WiFiClient.cpp:236] setSocketOption(): 1006 : 9 every time this function runs. #2213
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
this message appears to be occurring due to https://github.com/espressif/arduino-esp32/blob/master/libraries/HTTPClient/src/HTTPClient.cpp#L970 setting the receive timeout on the socket before the socket has been created in an attempt to set a connection timeout. Unfortunately this timeout call should be done after the call to connect() a few lines later. |
the underlying LWIP stack function that is setting ERRNO to 9: https://github.com/espressif/esp-lwip/blob/046fadde072b5fca94bea84c16cce5ecbfd6948e/src/api/sockets.c#L2688 |
Soooo. Did i make a mistake or is this just some growing pains. My code runs. |
@dmdelorme you did not make any mistake, it is a bug in the HTTPClient code. I submitted a PR to fix it. |
Thanks |
Is the error still in HTTPClient? |
@Jeronimo016 if you still have an issue I'd suggest open a new issue to track it and provide code/output etc. |
[E][WiFiClient.cpp:288] setSocketOption(): 1006 : 9 i get this error after uploading my scetch to Blynk.cloud. if i just want to connect my esp32 with Blynk.cloud than there is no problem but if i write my code and want to upload it i get this weired error. is this a bug inside the wificlient and wifigeneric code or am i making mistakes? |
Hardware:
Board: HUZZAH32 – ESP32 Feather
Core Installation/update date: ?? New Stable today
IDE name: Arduino IDE 1.8.8
Flash Frequency: 80Mhz
PSRAM enabled: ?
Upload Speed: 115200
Computer OS: Ubuntu
Description:
I receive the proper data
but I keep getting this error
Added timeout but no difference so commented it out.
Function in Sketch:
The Sketch:
The text was updated successfully, but these errors were encountered: