Radio station added on desktop app crashes plugin

Posted on
Wed Oct 11, 2017 11:25 pm
elleff offline
Posts: 5
Joined: Jul 25, 2014

Radio station added on desktop app crashes plugin

Hi Nick,

Thanks for providing this plugin for Indigo and all the ongoing work on updating it!

In Australia, listening to any of the ABC group radio stations through TuneIn gives you a terrible bitrate, pretty much unlistenable. The work around is to add a custom stream URL through the desktop SONOS app by going to "Manage" and then "Add radio station".

A couple of examples of a URL that you would enter in are:
http://www.abc.net.au/res/streaming/aud ... riplej.pls
http://www.abc.net.au/res/streaming/aud ... riplej.pls

Unfortunately when playing one of the stations added in this way it appears to crash your plugin. Could you please see if this is something you can fix? Below is the results of the debug that you requested another user perform to show the source causing the issue, of course please ask me any questions or for any further information.

Thanks!

Lyndon

Code: Select all
Port 1400 is busy: Couldn't listen on any:1400: [Errno 48] Address already in use.
'RenderingControl'
{'bass': '6',
 u'headphone_connected': '0',
 'loudness': {'Master': '1'},
 'mute': {'LF': '0', 'Master': '0', 'RF': '0'},
 u'output_fixed': '0',
 u'preset_name_list': 'FactoryDefaults',
 u'sonar_calibration_available': '0',
 u'sonar_enabled': '0',
 u'speaker_size': '-1',
 u'sub_crossover': '0',
 u'sub_enabled': '1',
 u'sub_gain': '0',
 u'sub_polarity': '0',
 'treble': '4',
 'volume': {'LF': '100', 'Master': '30', 'RF': '100'}}

Unhandled Error
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1588, in dataReceived
    finishCallback(data[contentLength:])
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1980, in _finishRequestBody
    self.allContentReceived()
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 2059, in allContentReceived
    req.requestReceived(command, path, version)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 869, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 184, in process
    self.render(resrc)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 235, in render
    body = resrc.render(self)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 235, in render_NOTIFY
    variables = parse_event_xml(content)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 142, in parse_event_xml
    value = from_didl_string(value)[0]
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 99, in from_didl_string
    items.append(cls.from_element(elt))
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 515, in from_element
    title = really_unicode(title_elt.text)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/utils.py", line 43, in really_unicode
    raise ValueError('%s is not a string at all.' % in_string)
exceptions.ValueError: None is not a string at all.

Unhandled Error
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1588, in dataReceived
    finishCallback(data[contentLength:])
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1980, in _finishRequestBody
    self.allContentReceived()
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 2059, in allContentReceived
    req.requestReceived(command, path, version)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 869, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 184, in process
    self.render(resrc)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 235, in render
    body = resrc.render(self)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 235, in render_NOTIFY
    variables = parse_event_xml(content)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 142, in parse_event_xml
    value = from_didl_string(value)[0]
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 99, in from_didl_string
    items.append(cls.from_element(elt))
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 515, in from_element
    title = really_unicode(title_elt.text)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/utils.py", line 43, in really_unicode
    raise ValueError('%s is not a string at all.' % in_string)
exceptions.ValueError: None is not a string at all.

Unhandled Error
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1588, in dataReceived
    finishCallback(data[contentLength:])
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1980, in _finishRequestBody
    self.allContentReceived()
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 2059, in allContentReceived
    req.requestReceived(command, path, version)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 869, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 184, in process
    self.render(resrc)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 235, in render
    body = resrc.render(self)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 235, in render_NOTIFY
    variables = parse_event_xml(content)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 142, in parse_event_xml
    value = from_didl_string(value)[0]
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 99, in from_didl_string
    items.append(cls.from_element(elt))
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 515, in from_element
    title = really_unicode(title_elt.text)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/utils.py", line 43, in really_unicode
    raise ValueError('%s is not a string at all.' % in_string)
exceptions.ValueError: None is not a string at all.

Unhandled Error
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1588, in dataReceived
    finishCallback(data[contentLength:])
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1980, in _finishRequestBody
    self.allContentReceived()
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 2059, in allContentReceived
    req.requestReceived(command, path, version)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 869, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 184, in process
    self.render(resrc)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 235, in render
    body = resrc.render(self)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 235, in render_NOTIFY
    variables = parse_event_xml(content)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 142, in parse_event_xml
    value = from_didl_string(value)[0]
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 99, in from_didl_string
    items.append(cls.from_element(elt))
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 515, in from_element
    title = really_unicode(title_elt.text)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/utils.py", line 43, in really_unicode
    raise ValueError('%s is not a string at all.' % in_string)
exceptions.ValueError: None is not a string at all.

Unhandled Error
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1588, in dataReceived
    finishCallback(data[contentLength:])
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 1980, in _finishRequestBody
    self.allContentReceived()
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 2059, in allContentReceived
    req.requestReceived(command, path, version)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/http.py", line 869, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 184, in process
    self.render(resrc)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/server.py", line 235, in render
    body = resrc.render(self)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 235, in render_NOTIFY
    variables = parse_event_xml(content)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/events.py", line 142, in parse_event_xml
    value = from_didl_string(value)[0]
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 99, in from_didl_string
    items.append(cls.from_element(elt))
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/data_structures.py", line 515, in from_element
    title = really_unicode(title_elt.text)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib/soco/utils.py", line 43, in really_unicode
    raise ValueError('%s is not a string at all.' % in_string)
exceptions.ValueError: None is not a string at all.

Page 1 of 1

Who is online

Users browsing this forum: Eagleye and 4 guests