-
Notifications
You must be signed in to change notification settings - Fork 156
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
Unknown message returned when deleting a mapping. #27
Comments
Sorry! |
Huh, bonkers! Could you capture the whole set of requests/responses? The shape of the response is somewhat dependent on the shape of the request. I'll double check this anyway in case there's an obvious issue! |
Ah it's actually an easy one - the response is invalid. This is a proper response. Please ignore the escaping in the string, i just pulled it straight from the debugger:
The xml namespace for the 'DeletePortMappingResponse' element is supposed to be the service type. In my case it's What is the service type for your device? |
It's a real funny device - fibre dsl router with build in wifi. Would be surprised as far as the response not being standard. It's ISP provided so will be as cheap as they come!
|
Alan, sorry to bother - any change you could update nuget with the latest version please? |
@BaronGreenback I released what's in master as of now as v3.0.0. There was an API break which necessitated a major version change. However, i don't know how to fully resolve the issue you're facing with your router yet. To figure this one out I'd need the full sequence of request/response messages in a single log file. It looks like whoever created that xml response literally hardcoded the strings, including the xmlns prefixes, rather than construct a proper response. The response has |
Thanks! I totally understand what you mean about the xml - i've been doing some dlna to my sharp tv - and i've had to write a "loose" parser as they return questionable xml to say the least. Wouldn't worry about the xml at the moment. As soon as i've finished my current PR - i'll do a network trace and post you the results. |
[2020-08-15 19:47:37.213 +01:00] [INF] [5] Mono.Nat.Upnp.UpnpNatDevice: uPnP Response: , <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:DeletePortMappingResponse xmlns:u="DeletePortMapping"></u:DeletePortMappingResponse></s:Body></s:Envelope>
[2020-08-15 19:47:37.220 +01:00] [ERR] [5] Mono.Nat.Upnp.ResponseMessage: Unknown message returned. Please send me back the following XML: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:DeletePortMappingResponse xmlns:u="DeletePortMapping"></u:DeletePortMappingResponse></s:Body></s:Envelope>
The text was updated successfully, but these errors were encountered: