-
Notifications
You must be signed in to change notification settings - Fork 16
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
TinyUPNP library makes my esp8266 crash and reset #48
Comments
@mustafaosarwala Please also check that UPnP is enabled in your router. |
@ofekp |
Your router does not answer back to the request to get the file This tells me your router expects some header that we did not provide. I am guessing, though. This happens in the method Let's start with your router model, can you give me the brand and model please, I wanna see if someone had a similar issue? |
Its a D-link ADSL Router. |
OK, I did not find anything regarding this model. Moreover, the HTTP rfc claims that GET request should never be responded with 501 status code. Can you give it a try with a different router please? Also, I am assuming you did not introduce any change to the code, except for the fields that must be set in the example. |
I tried it with a portable router and it works fine with the it. |
OK, we can keep trying to understand what is the issue with your other router. Are you willing to try to update your router's firmware? Are you familiar with Postman? It is a program that will let you issue HTTP requests while having control over the headers you send. If you want to keep trying, we will have to reproduce the issue with that program. It will take few iterations but it is worth trying. Please start by downloading the program from their site https://www.getpostman.com/ You should do a GET request with the following parameters: URL Headers
Fire it away and let me know what the response was. Did you get the file or the 501 Unsupported error. |
Will Surely do. Hope this is not taking much of your time. |
NP, please do not update the firmware now though. I suspect maybe your router is not liking the |
Postman got the file. |
Can you please print screen the headers section and the url? |
Can you expand the "Temporary Headers" please? Can you try switching the method to POST in the top left, right before the URL? |
Thank you for that. |
@ofekp User-Agent:PostmanRuntime/7.22.0 from which postman only allows to disable cache-control and postman-token which i did disable. I also added these headers in getIGDEventURLs() but it still didnt work. This is the screenshot of arduino serial monitor after adding the headers. (This is a different esp this one doesnt reset and go on a loop like the other one. |
No worries. OK, can you restore the headers to their original state and then remove only the "Content-Type" header from the code please? (remove the line After that, if it does not help, let's go ahead with the firmware update please, and then see if the problem persists. |
I am trying to open a port on my router using tinyupnp library.
Right now i am trying the example code given in the library. the code compiles fine but after uploading after every few seconds my esp8266 keeps resetting and shows the following error.
This keeps happening on a loop continuously and i cant make out what the problem is.
please help.
Log file:
esp8266_tinyupnp_log.txt
The text was updated successfully, but these errors were encountered: