Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Bug: [ERROR] Unhandled exception in client_connected_cb #50

Open
DarthVenator228 opened this issue Mar 1, 2024 · 0 comments
Open

Bug: [ERROR] Unhandled exception in client_connected_cb #50

DarthVenator228 opened this issue Mar 1, 2024 · 0 comments

Comments

@DarthVenator228
Copy link

C:\Users\default>python -m swampymud --tcp 1234
2024-03-01 14:43:55,072 [INFO] Launching a TCP Server on port '1234'
2024-03-01 14:43:55,074 [WARNING] C:\Users\default\AppData\Local\Programs\Python\Python312\Lib\site-packages\swampymud\__main__.py:121: DeprecationWarning: There is no current event loop
  asyncio.get_event_loop().run_until_complete(server.run())

2024-03-01 14:44:07,881 [INFO] 0 joined.
2024-03-01 14:44:07,882 [WARNING] Default Character has no default location, so 0 will be spawned in Swampy Tavern
2024-03-01 14:44:07,882 [ERROR] Unhandled exception in client_connected_cb
transport: <_ProactorSocketTransport fd=384 read=<_OverlappedFuture pending cb=[_ProactorReadPipeTransport._loop_reading()]>>
Traceback (most recent call last):
  File "C:\Users\default\AppData\Local\Programs\Python\Python312\Lib\site-packages\swampymud\mudserver.py", line 142, in _register_tcp
    await asyncio.wait([self._incoming_tcp(pid, reader),
  File "C:\Users\default\AppData\Local\Programs\Python\Python312\Lib\asyncio\tasks.py", line 461, in wait
    raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.
2024-03-01 14:44:07,885 [WARNING] C:\Users\default\AppData\Local\Programs\Python\Python312\Lib\asyncio\streams.py:281: RuntimeWarning: coroutine 'MudServer._incoming_tcp' was never awaited
  self._task = None

2024-03-01 14:44:07,886 [WARNING] C:\Users\default\AppData\Local\Programs\Python\Python312\Lib\asyncio\streams.py:281: RuntimeWarning: coroutine 'MudServer._outgoing_tcp' was never awaited
  self._task = None

Here I've copied the output directly from the command line. This is a brand new installation of Python 3.12 on Windows 11 and all the required modules are fully updated. The Telnet client I'm using to connect is Mudlet and here's what it looks like on that end:
image

To be clear, the server seems to run fine in the background, but throws all these errors as soon as I try to join it. Not totally sure what the problem is or how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant