portmapper icon indicating copy to clipboard operation
portmapper copied to clipboard

portmapper fails with my router

Open ravn opened this issue 4 years ago • 1 comments

Checked out the latest sources (7a4d7fc28fed0576260fd6ef339128e6fce2fac4). After pressing Connect the log shows:

DEBUG Getting port mapping with entry number 0...
ERROR Invocation (ActionInvocation) (Action, Arguments: 9) GetGenericPortMappingEntry failed with operation '500 Internal Server Error', body '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
 <s:Body>
  <s:Fault>
   <faultcode>s:Client</faultcode>
   <faultstring>UPnPError</faultstring>
   <detail>
    <UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
     <errorCode>713</errorCode>
     <errorDescription>SpecifiedArrayIndexInvalid</errorDescription>
    </UPnPError>
   </detail>
  </s:Fault>
 </s:Body>
</s:Envelope>
'
INFO  Got error response when fetching port mapping for entry number 0: '(IncomingActionResponseMessage) 500 Internal Server Error'. Stop getting more entries.

ravn avatar Apr 14 '20 21:04 ravn

Hi @ravn, Thanks for using PortMapper! This error message is 'expected'. UPnP does not allow getting the number of port mappings. That's why PortMapper continues fetching the mappings until it receives an error like the one you saw (SpecifiedArrayIndexInvalid). PortMapper tries to retrieve entry 0 and gets this error. This means there is currently no mapping configured in your router.

Does this answer your question?

kaklakariada avatar Apr 25 '20 12:04 kaklakariada

Closing as stale.

kaklakariada avatar Feb 03 '24 08:02 kaklakariada