Skip to content

Unhandled exception in httppersist.py #2

@jfcabral

Description

@jfcabral

First of all, thanks for enabling the issue tracker ;)

Now regarding the bug, I'm using version 3.4.1 of the addon, installed on both OpenElec and RaspBMC on my raspberry pi.

Since my pi is used by more than one user, sometimes it is used without the Plex Media Server being online. Therefore I have noticed that in the xbmc log file, that this is printed every 1-3 seconds since the service starts (while having the Plex Media Server offline), resulting in a huge spam:

20:37:28 T:2908746816   ERROR: Traceback (most recent call last):
20:37:28 T:2908746816   ERROR:   File "/home/pi/.xbmc/addons/script.plexbmc.helper-master/resources/lib/httppersist.py", line 62, in get
20:37:28 T:2908746816   ERROR:     conn.request("GET", path, headers=header)
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/httplib.py", line 962, in request
20:37:28 T:2908746816   ERROR:     self._send_request(method, url, body, headers)
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/httplib.py", line 996, in _send_request
20:37:28 T:2908746816   ERROR:     self.endheaders(body)
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
20:37:28 T:2908746816   ERROR:     self._send_output(message_body)
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
20:37:28 T:2908746816   ERROR:     self.send(msg)
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/httplib.py", line 780, in send
20:37:28 T:2908746816   ERROR:     self.connect()
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/httplib.py", line 761, in connect
20:37:28 T:2908746816   ERROR:     self.timeout, self.source_address)
20:37:28 T:2908746816   ERROR:   File "/usr/lib/python2.7/socket.py", line 553, in create_connection
20:37:28 T:2908746816   ERROR:     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
20:37:28 T:2908746816   ERROR: gaierror: [Errno -2] Name or service not known
20:37:28 T:2908746816  NOTICE: Unable to connect to 
                                            Reason: None

Seems to be an unhandled exception? Maybe there should be a timer between retries in order to avoid such spam? What do you think=

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions