-
Notifications
You must be signed in to change notification settings - Fork 59
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
If (err) return callback(null) #2
Comments
Hm... it should not return a error here, because it is |
@indutny well the error comes from https://github.com/indutny/node-nat-upnp/blob/master/lib/nat-upnp/device.js#L150-L152 That's the request body I was referring to, sorry for not being more clear. The status code is 500. |
Could you please log |
That's the one from my previous reply: { '@':
{ 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/',
'SOAP-ENV:encodingStyle': 'http://schemas.xmlsoap.org/soap/encoding/' },
'SOAP-ENV:Body':
{ 'SOAP-ENV:Fault':
{ faultcode: 'SOAP-ENV:Client',
faultstring: 'UPnPError',
detail:
{ UPnPError:
{ '@': { xmlns: 'urn:schemas-upnp-org:control-1-0' },
errorCode: '402',
errorDescription: 'Invalid NewPortMappingIndex' } } } } } |
Or were you reffering to the |
Yeah, body that was sent. |
Ok, will let you know as soon as I get home. Thanks a lot! |
This is the body that seems to be sent:
|
Seems to be a response body... |
You should probably try to print this var: https://github.com/indutny/node-nat-upnp/blob/master/lib/nat-upnp/device.js#L144 |
Sorry my bad, I was logging in the wrong location. The thing is that now everything seems to be ok, I'm not sure what happened the other time. I will let you know next time I encounter the problem.
|
This module worked fine a couple of days ago, but now it does not show me the mappings (but I can assign private => public ports) so I debugged a bit. Turns out that at the following line the callback does not include the error:
https://github.com/indutny/node-nat-upnp/blob/master/lib/nat-upnp/client.js#L89-L92
Shouldn't it return the error?
Anyway in my case the request body is the following:
Any thoughts?
The text was updated successfully, but these errors were encountered: