Hi,
The error is a failure in the code to process a return from an MSearch call - the app uses MSearch to find all UPnP devices on the your network.
If you run the Sonospy command directly on the command line in the sonospy rather than using sonospy_proxy in the base folder, you should see the name of the device causing the problem just before the error message:
cd sonospy
python pycpoint.py -p -sSonospy=Sonospy,,sonospy.db,userindex3.ini -r
One of the other guys reported a similar issue with a Synology NAS, but it went away (https://groups.google.com/forum/#!topic/sonospy-devel/oMatfCTaLsU).
Mark.
--
You received this message because you are subscribed to the Google Groups "Sonospy Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonospy-deve...@googlegroups.com.
To post to this group, send email to sonosp...@googlegroups.com.
Visit this group at https://groups.google.com/group/sonospy-devel.
For more options, visit https://groups.google.com/d/optout.
data: HTTP/1.1 200 OKCACHE-CONTROL: max-age = 1800DATE:Fri, 19 Jan 2018 21:47:15 GMTEXT:LOCATION: http://192.168.0.187:8088/descriptionSERVER: Ubuntu/10.04 UPnP/1.1 Harmony/16.3ST: urn:myharmony-com:device:harmony:1USN: uuid:8040b10d-eb73-4217-3de5-3cea046ea717::urn:myharmony-com:device:harmony:1
Traceback (most recent call last):File "/opt/sonospy/app/sonospy/brisa/upnp/control_point/msearch.py", line 162, in _datagram_receivedcmd, headers = parse_http_response(data)File "/opt/sonospy/app/sonospy/brisa/core/network.py", line 259, in parse_http_responseheader, payload = data.split('\r\n\r\n')ValueError: need more than 1 value to unpack
Unhandled exception in thread started by <bound method MSearch._datagram_received of <brisa.upnp.control_point.msearch.MSearch object at 0x7f03a8c1ea90>>
Args:option.proxyonly: Trueoption.register: TrueMusic service: Sonospy=Sonospy,sonospy.db,userindex3.iniProxy. Name: SonospyERROR: Traceback (most recent call last):File "pycpoint.py", line 712, in __init__proxy.start()File "/opt/sonospy/app/sonospy/proxy.py", line 302, in startself._load()File "/opt/sonospy/app/sonospy/proxy.py", line 293, in _loadself._add_root_device()File "/opt/sonospy/app/sonospy/proxy.py", line 237, in _add_root_devicereceive_notify=receive_notify)File "/opt/sonospy/app/sonospy/brisa/upnp/device/device.py", line 85, in __init__self._create_webserver(force_listen_url)File "/opt/sonospy/app/sonospy/brisa/upnp/device/device.py", line 104, in _create_webserverself.webserver = webserver.WebServer(host=p.hostname, port=p.port)File "/opt/sonospy/app/sonospy/brisa/core/webserver.py", line 1529, in __init__self.set_bind_address(self.host, self.port)File "/opt/sonospy/app/sonospy/brisa/core/webserver.py", line 1585, in set_bind_addressraise ValueError('URL cannot be used by the webserver.')ValueError: URL cannot be used by the webserver.
The port that Sonospy is trying to use is in use already (port
50104 if you haven't changed it in the ini) - is Sonospy already
running?
No problem.
Embarrassingly, it was user error, as I had not correctly triggered the stop job in my automated configuration.
Thanks Mark for identifying the issue.