-
Notifications
You must be signed in to change notification settings - Fork 13.3k
OTA Update with node js server #5302
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
You are doing nothing wrong. We don't automatically handle HTTP-redirects.
There were some efforts done to handle such redirects for OTA by @liebman, see #5009 and its handling code. @liebman could you try and fix your PR's conflicts ? Could this be generalized to any HTTP client requests, I don't know (@devyte ?). |
@d-a-v I'll look at the conflicts today, but see #5009 (comment) for issues if the redirect changes between http & https. |
Thanks a lot, I will try and post results. |
Rediirects should be handled in httpClient, not in the updater. |
I took the easy path, allowed traffic on port 80 (besides port 443) in NGINX. Problem solved.
My code in node js is: (note that request from esp8266 is GET and not POST)
|
I am trying to implement OTA update from my Node Js server behind NGINX. I have this code in my sketch. (I am using NodeMCU 1.0 (ESP 12E) ).
My code in nodejs is:
First thing I want to assure that my request from my NodeMCU 1.0 (ESP 12E) is reaching the right address on the server. But I don’t get any console output.
The listing in Serial Monitor is as bellow:
Can someone please guide me what I am doing wrong.
The text was updated successfully, but these errors were encountered: