Open
Description
Summary
Cannot write to closing transport
Reproduction Steps
I have tried to get all members from a Discord server. The problem is that the bot can't run for long time. a couple hours later, it comes up like this.
Code
while True:
members = await guild.fetch_members(channels=[discord.Object(1)])
Expected Results
The bot must wait and retry
Actual Results
The bot just doesn't do anything or write anything to the console. The connection remains
System Information
- Python v3.13.1-final
- discord.py-self v2.1.0-final
- aiohttp v3.11.14
- system info: Windows 10 10.0.19045
Checklist
- I have confirmed I am using unmodified discord.py-self and not the upstream discord.py.
- I am using a user token (and it isn't visible in the code).
- I have searched the open issues for duplicates.
- I have searched closed issues for resolved duplicates.
- I have confirmed the development version doesn't resolve the issue.
- I have shared the entire traceback.