Project

General

Profile

Actions

Bug #12

closed

service.py crashing in the background

Added by Master Slave 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
06/02/2024
Due date:
% Done:

0%

Estimated time:
0:30 h

Description

2024-05-27 13:45:44.626 T:1205 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='api.odysee.com', port=443): Max retries exceeded with url: /notification/list (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3ce06070>: Failed to resolve 'api.odysee.com' ([Errno -3] Temporary failure in name resolution)"))
Traceback (most recent call last):
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 203, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
socket.gaierror: [Errno -3] Temporary failure in name resolution

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 1096, in _validate_conn
conn.connect()
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 611, in connect
self.sock = sock = self._new_conn()
^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 210, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: &lt;urllib3.connection.HTTPSConnection object at 0x7f3ce06070&gt;: Failed to resolve 'api.odysee.com' ([Errno -3] Temporary failure in name resolution)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/storage/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.urllib3/lib/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.odysee.com', port=443): Max retries exceeded with url: /notification/list (Caused by NameResolutionError("&lt;urllib3.connection.HTTPSConnection object at 0x7f3ce06070&gt;: Failed to resolve 'api.odysee.com' ([Errno -3] Temporary failure in name resolution)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.lbry.sg/service.py", line 540, in &lt;module&gt;
display_user_notifications()
File "/storage/.kodi/addons/plugin.video.lbry.sg/service.py", line 467, in display_user_notifications
notifications = odysee.notification_list()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.lbry.sg/resources/lib/odysee.py", line 214, in notification_list
return self._odysee_rpc('/notification/list', params).json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.lbry.sg/resources/lib/lbry.py", line 447, in _odysee_rpc
result = requests.post(f'https://{Lbry.ODYSEE_API_HOSTNAME}{path}', headers=headers if headers else self._odysee_request_headers(), data=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.requests/lib/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.requests/lib/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.odysee.com', port=443): Max retries exceeded with url: /notification/list (Caused by NameResolutionError("&lt;urllib3.connection.HTTPSConnection object at 0x7f3ce06070&gt;: Failed to resolve 'api.odysee.com' ([Errno 3] Temporary failure in name resolution)"))
-
>End of Python script error report<--
Actions #1

Updated by Master Slave 5 months ago

  • Estimated time set to 0:30 h
Actions #2

Updated by Master Slave 5 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF