[GH-ISSUE #37] Improve error message if server is not running #10

Closed
opened 2026-03-03 01:21:08 +03:00 by kerem · 4 comments
Owner

Originally created by @wenchengxucool on GitHub (May 31, 2021).
Original GitHub issue: https://github.com/cs01/termpair/issues/37

Traceback (most recent call last):
File "/Users/david/.local/bin/termpair", line 8, in
sys.exit(main())
File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/termpair/main.py", line 109, in main
asyncio.get_event_loop().run_until_complete(
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/termpair/share.py", line 231, in broadcast_terminal
async with websockets.connect(ws_endpoint, ssl=ssl_context) as ws:
File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/websockets/client.py", line 517, in aenter
return await self
File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/websockets/client.py", line 535, in await_impl
transport, protocol = await self._create_connection()
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1064, in create_connection
raise OSError('Multiple exceptions: {}'.format(
OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 8000, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 8000)

Originally created by @wenchengxucool on GitHub (May 31, 2021). Original GitHub issue: https://github.com/cs01/termpair/issues/37 Traceback (most recent call last): File "/Users/david/.local/bin/termpair", line 8, in <module> sys.exit(main()) File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/termpair/main.py", line 109, in main asyncio.get_event_loop().run_until_complete( File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/termpair/share.py", line 231, in broadcast_terminal async with websockets.connect(ws_endpoint, ssl=ssl_context) as ws: File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/websockets/client.py", line 517, in __aenter__ return await self File "/Users/david/.local/pipx/venvs/termpair/lib/python3.9/site-packages/websockets/client.py", line 535, in __await_impl__ transport, protocol = await self._create_connection() File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1064, in create_connection raise OSError('Multiple exceptions: {}'.format( OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 8000, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 8000)
kerem closed this issue 2026-03-03 01:21:08 +03:00
Author
Owner

@cs01 commented on GitHub (May 31, 2021):

Could you also share the commands you used that resulted in this error so that it can be reproduced?

<!-- gh-comment-id:851698923 --> @cs01 commented on GitHub (May 31, 2021): Could you also share the commands you used that resulted in this error so that it can be reproduced?
Author
Owner

@wenchengxucool commented on GitHub (May 31, 2021):

Could you also share the commands you used that resulted in this error so that it can be reproduced?

just use "termpair share -a"

<!-- gh-comment-id:851711530 --> @wenchengxucool commented on GitHub (May 31, 2021): > Could you also share the commands you used that resulted in this error so that it can be reproduced? just use "termpair share -a"
Author
Owner

@cs01 commented on GitHub (Jun 1, 2021):

Are you running the server on port 8000?

<!-- gh-comment-id:851732968 --> @cs01 commented on GitHub (Jun 1, 2021): Are you running the server on port 8000?
Author
Owner

@cs01 commented on GitHub (Jun 3, 2021):

I think what is going on here is the client is trying to connect to a server that wasn't started. I updated the title of the issue to improve the error message.

Try running the server termpair serve --port 8000 then connecting the client termpair share --port 8000.

<!-- gh-comment-id:853525449 --> @cs01 commented on GitHub (Jun 3, 2021): I think what is going on here is the client is trying to connect to a server that wasn't started. I updated the title of the issue to improve the error message. Try running the server `termpair serve --port 8000` then connecting the client `termpair share --port 8000`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termpair#10
No description provided.