Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fails to connect when port 8883 is closed #107

Open
mwfarb opened this issue Sep 28, 2021 · 0 comments
Open

Fails to connect when port 8883 is closed #107

mwfarb opened this issue Sep 28, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mwfarb
Copy link
Contributor

mwfarb commented Sep 28, 2021

  • We could try and catch this error, probe the port to provide a better error message.
  • Using eduroam VPN on campus is enough to replicate and attempt to connect to a scene. It filters all ports but 80, 443.
  • This is not useful:
Traceback (most recent call last):
  File "/Users/mwfarb/git/arena-py/tools/arb/arb.py", line 1394, in <module>
    scene = Scene(
  File "/Users/mwfarb/git/arena-py/arena/scene.py", line 179, in __init__
    self.mqttc.connect(self.host, port=8883)
  File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 937, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1071, in reconnect
    sock = self._create_socket_connection()
  File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
    return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
  File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 843, in create_connection
    raise err
  File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 831, in create_connection
    sock.connect(sa)
socket.timeout: timed out
sys:1: RuntimeWarning: coroutine 'PersistentWorker.run' was never awaited
sys:1: RuntimeWarning: coroutine 'AsyncWorker.run' was never awaited
@mwfarb mwfarb changed the title Fails to connect when port 8443 is closed Fails to connect when port 8883 is closed Sep 28, 2021
@mwfarb mwfarb added the bug Something isn't working label Sep 28, 2021
@mwfarb mwfarb self-assigned this Oct 27, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant