Open AraHaan opened 5 days ago
Hi @AraHaan
Thanks for reporting this issue.
Would you be able to open a PR to an xfail test to show this issue?
I already found the fix as well. Changing line 180 in client.py to add "wss"
before the ""
will make everything work again.
Will look into making the proper test for it though.
Opened draft pull request with the fix, test will come soon and updated docs and news entry.
Describe the bug
In discord.py a single wss:// type url is needed to create a websocket using aiohttp to discord's api. This both allows for new and resumed connections.
To Reproduce
Expected behavior
Everything to work, this should not have broken at all. wss links in discord api is needed through aiohttp because both
requests
and any other methods of connecting to discord's api is not going to work inside of a running event loop (it blocks it and is really bad to do that). As such I think it needs expanded to allow wss:// links as a special case.Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Windows
Related component
Server, Client
Additional context
I also packed everything into a zip file and embedded python with the ability to load c extensions from zip file.
Code of Conduct