Pushover - do I need a port open (Ubuntu)? #187
strangeoddity
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Running the Pushover unit tests, I get:
OSError: [Errno 101] Network is unreachable
This on an Ubuntu vps, no outbound firewall (as far as I'm aware!)
s
======================================================================
ERROR: testHighPriorityNotifications (tests.notifier.test_pushover_notifier.TestPushoverNotifier)
Traceback (most recent call last):
File "/home/ubuntu/chiadog/tests/notifier/test_pushover_notifier.py", line 39, in testHighPriorityNotifications
success = self.notifier.send_events_to_user(events=DummyEvents.get_high_priority_events())
File "/home/ubuntu/chiadog/src/notifier/pushover_notifier.py", line 27, in send_events_to_user
conn.request(
File "/usr/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1417, in connect
super().connect()
File "/usr/lib/python3.8/http/client.py", line 921, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
======================================================================
ERROR: testLowPriorityNotifications (tests.notifier.test_pushover_notifier.TestPushoverNotifier)
Traceback (most recent call last):
File "/home/ubuntu/chiadog/tests/notifier/test_pushover_notifier.py", line 29, in testLowPriorityNotifications
success = self.notifier.send_events_to_user(events=DummyEvents.get_low_priority_events())
File "/home/ubuntu/chiadog/src/notifier/pushover_notifier.py", line 27, in send_events_to_user
conn.request(
File "/usr/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1417, in connect
super().connect()
File "/usr/lib/python3.8/http/client.py", line 921, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
======================================================================
ERROR: testNormalPriorityNotifications (tests.notifier.test_pushover_notifier.TestPushoverNotifier)
Traceback (most recent call last):
File "/home/ubuntu/chiadog/tests/notifier/test_pushover_notifier.py", line 34, in testNormalPriorityNotifications
success = self.notifier.send_events_to_user(events=DummyEvents.get_normal_priority_events())
File "/home/ubuntu/chiadog/src/notifier/pushover_notifier.py", line 27, in send_events_to_user
conn.request(
File "/usr/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1417, in connect
super().connect()
File "/usr/lib/python3.8/http/client.py", line 921, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
Ran 5 tests in 60.061s
FAILED (errors=3, skipped=2)
Beta Was this translation helpful? Give feedback.
All reactions