-
Notifications
You must be signed in to change notification settings - Fork 134
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
Status code of response randomly zero #19
Comments
I get it. I see in the code that youa re using a When i delay my response by at least |
I'm having the same issue. I really need to get the response so my Arduino proceed to do other things depending on the response. But most of the time I'm getting an empty response. Please help. |
Hi @rodrigosalinas I had the same problem. I fixed it by using the flush() of the client used in RestClient.cpp. |
I have the same Problem in ESP8266 fork of this code. I have commented out the delay. With delay(100) 90% of all POST queries return statuscode 0 on ESP8266 with an node Express as server. By commenting out this line I was able to reduce the statuscode 0 responses to ~10%. My client works fire&forget, so it's not critical but it is not really clean. |
@pho-enix could you provide us with a code snipped for the flush() approach? Im not that C nerd. |
@Tommy-LSA you simple call the flush on the correct client:
|
@pho-enix , unfortunately it doesn't build for ESP8266 fork
|
@Tommy-LSA indeed. In C you use Please try |
@pho-enix Great, I just came across this and still helped me after 2+ years. Maybe would be good to have it as a PR? |
I'm using node red to log simple data values from arduino send with this library.
Everything works but the status code of the response is sometime 200, but most of the time randomly
0
with an empty response. The NodeRed workflow works (its only an hTTP in and http out nodesNote: i do get my values right at every request in nodered debug node. So the request is properly made...
When i make ONE
post
request the debug shows:The text was updated successfully, but these errors were encountered: