All pastes #399960 Raw Edit

Something

public text v1 · immutable
·published 2007-03-18 11:32 UTC
rendered paste body
2007/03/18 12:30 CET [HTTPChannel,6,192.168.0.128] Event: EventSubscriptionServer ContentDirectory (Elisa medias) received subscribe request from IPv4Address(TCP, '192.168.0.128', 51061), code: 200
2007/03/18 12:30 CET [HTTPChannel,6,192.168.0.128] 192.168.0.128 - - [18/Mar/2007:11:30:58 +0000] "SUBSCRIBE /357535a4-2034-49a4-8626-c523ffe01937/ContentDirectory/subscribe HTTP/1.1" 200 - "-" "-"
2007/03/18 12:30 CET [HTTPPageGetter,client] Unhandled error in Deferred:
2007/03/18 12:30 CET [HTTPPageGetter,client] Traceback (most recent call last):
          File "/home/phil/devel/coherence/coherence/upnp/core/utils.py", line 97, in handleResponse
            self.factory.page(response)
          File "/home/phil/devel/coherence/coherence/upnp/core/utils.py", line 111, in page
            self.deferred.callback((page, self.response_headers))
          File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 229, in callback
            self._startRunCallbacks(result)
          File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 294, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 307, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/home/phil/devel/coherence/coherence/upnp/core/device.py", line 130, in gotPage
            tree = utils.parse_xml(x, 'utf-8').getroot()
          File "/home/phil/devel/coherence/coherence/upnp/core/utils.py", line 23, in parse_xml
            data = data.encode(encoding)
        exceptions.AttributeError: 'tuple' object has no attribute 'encode'