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
Race condition in InteractionResponse #963
Comments
Your System Information should be your OS's information, py-cord's version info and more information if any. Also, can you show us the full exception traceback? |
This happens with me also, when I run code in VS code python debugger using some breakpoints. |
I'll recreate the bug when I'm in school. |
TracebackTask exception was never retrieved |
Summary
There is a race condition in InteractionResponse
Reproduction Steps
Running two task that will send a response to a Interaction will end in unexpected error.
Second Task will Raise NotFound Exception instead of
InteractionResponded
error.This is due to a race condition in the libarry.
And because of this ApplicationContext.respond is also broken.
Minimal Reproducible Code
Expected Results
Command should exit with
InteractionResponded
or better ApplicationContext.respond should switch to followup.Actual Results
NotFound HTTP exeption is raised.
404
Intents
Default
System Information
py-cord 2.0.0b4 master
Python 3.9 interpreter
OS Name Microsoft Windows 10 Home
Version 10.0.19041 Build 19041
Checklist
Additional Context
Started working on a fix using asyncio.Lock
The text was updated successfully, but these errors were encountered: