mirror of
https://github.com/cs01/termpair.git
synced 2026-04-26 21:15:55 +03:00
[GH-ISSUE #37] Improve error message if server is not running #10
Labels
No labels
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termpair#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
@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?
@wenchengxucool commented on GitHub (May 31, 2021):
just use "termpair share -a"
@cs01 commented on GitHub (Jun 1, 2021):
Are you running the server on port 8000?
@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 8000then connecting the clienttermpair share --port 8000.