Find answers from the community

Updated 3 months ago

`discord.py` doesn't really love nest_

discord.py doesn't really love nest_asyncio lol
L
Z
11 comments
whats the error?
It’s not an error so much as it takes the whole thread so when I nest it, it runs tasks and there’s multiple layers, sometimes things don’t seem to end? It’s hard to describe
Like simple things will take a minute to run like checking the database
sounds like something is blocking the async loop?
Maybe? I’m starting an index in it but the vector store and everything is hosted online, could it be because discord uses an asynchronous iterator?
That should be fine 🤔
I think they’re incompatible though, hm 🤔 I could run Llama Index as a separate API to the bot
That stinks a little bit I’d rather have them in the same but
@Logan M can I share you into the repo perchance today to just peek at it? It only needs an env file (which I’ll copy and paste and DM you) to run to see what’s going on, it’s really hard to describe, but it’s like the event loop is being forked over and over sometimes and then they aren’t being resolved
Idk where else to ask, nobody else I know uses nest_asyncio
Add a reply
Sign up and join the conversation on Discord