Open honzajavorek opened 5 months ago
my bot, which has been working for several months, has just appeared now
I'm fairly sure this is due to changes in aiohttp itself and not this library, as 2.5.0 didn't have any major underlying changes. Perhaps experiment with downgrading your aiohttp version (minimum 3.6.0). Coincidentally there's mention of an Unclosed client session
warning fix in the 3.9.5 changelog; not sure if it's related, but maybe try that too.
I see the same behavior with aiohttp pinned to either 3.6.0 or 3.9.5.
+1 same issue here on version 2.5.0
, our discord bot was working seamlessly until upgrading
hey @honzajavorek, could you solve this issue somehow?
Not yet. I plan to clone pycord and bisect commits to see when exactly this has started, but I haven't had time to do it. I see the warnings every day in my terminal, so I'm motivated to nail down this annoyance, but still it's low priority as it has no actual impact on functionality (at least I hope! 😀)
Summary
After upgrading to 2.5.0, my program emits unexpected errors to log output.
Reproduction Steps
The code below works correctly with 2.4.1 and all previous versions:
After upgrading to 2.5.0, it produces the following logging at the end of the output:
Minimal Reproducible Code
No response
Expected Results
The code I have is designed to spin up a Discord client, do something over the API, and then close the client and end the script. It catches any exceptions and lets them to bubble up to crash the script in case of errors. It's supposed to work as a one-time job, not as a long-running bot. This code has worked correctly for several years now. It still does, but with 2.5.0 it started to produce errors which indicate something suddenly ain't right.
Actual Results
Getting errors which indicate something suddenly ain't right.
Intents
not relevant, but it's Intents(guilds=True, members=True, message_content=True)
System Information
Checklist
Additional Context
I wanted to figure out what commits in pycord caused the errors, but there's 262 new commits in the new version and that's just too many for me to go through 🤯 So just hoping here you might have a hunch what could be the issue.