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

'include_servers' doesn't work with spaces or quotes #9

Open
zzgames opened this issue Aug 29, 2024 · 1 comment
Open

'include_servers' doesn't work with spaces or quotes #9

zzgames opened this issue Aug 29, 2024 · 1 comment

Comments

@zzgames
Copy link

zzgames commented Aug 29, 2024

Example with quotes:

command: python main.py -i 'server'
output:

WARNING:root:Did not find the following servers: {"'server'"} consider choosing from the following servers: { ... }

Example with spaces

command: python main.py -i 'server name'
output:

WARNING:root:Did not find the following servers: {"'server", "name'"} consider choosing from the following servers: { ... }

The error that I'm getting in both cases:

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-44' coro=<GuildSubscriptions._tick_task() done, defined at C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\state.py:559> exception=ConnectionResetError('Cannot write to closing transport')>
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\state.py", line 562, in _tick_task
    await self._flush()
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\state.py", line 679, in _flush
    await self._state.ws.bulk_guild_subscribe(payload)
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\gateway.py", line 741, in bulk_guild_subscribe
    await self.send_as_json(payload)
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\gateway.py", line 659, in send_as_json
    await self.send(utils._to_json(data))
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\gateway.py", line 655, in send
    await self.socket.send_str(data)
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\client_ws.py", line 225, in send_str
    await self._writer.send(data, binary=False, compress=compress)
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\http_websocket.py", line 726, in send
    await self._send_frame(message, WSMsgType.TEXT, compress)
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\http_websocket.py", line 626, in _send_frame
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
@zzgames
Copy link
Author

zzgames commented Aug 29, 2024

Works with double quotes, but in the README.md the example uses single quotes

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