5kyc0d3r / upnpy

Lightweight UPnP client library for Python.
https://upnpy.readthedocs.io
MIT License
60 stars 18 forks source link

get external ip addres, returned empty dict {} #6

Closed fianitnz closed 4 years ago

fianitnz commented 4 years ago

upnpy/upnpy/soap/SOAP.py

14minidom.parseString(response)

Expects a string, not text with EOF.

Possible way to fix the error, remove EOF characters.

After

11response = response.read().decode()

add response = response.replace("\r","") response = response.replace("\n","")