Skip to content
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

AsyncComputedVar that was never awaited #4856

Open
jryberg opened this issue Feb 21, 2025 · 1 comment
Open

AsyncComputedVar that was never awaited #4856

jryberg opened this issue Feb 21, 2025 · 1 comment
Assignees

Comments

@jryberg
Copy link

jryberg commented Feb 21, 2025

Describe the bug
Got the following error message, it might be user error but It's very hard to know where to look.

/usr/lib/python3.12/contextlib.py:217: RuntimeWarning: coroutine 'AsyncComputedVar.get.._awaitable_result' was never awaited
await anext(self.gen)
Object allocated at (most recent call last):
File "/home/johan/code/src/github.com//.venv/lib/python3.12/site-packages/reflex/vars/base.py", lineno 2561
return _awaitable_result()

Specifics (please complete the following information):

  • Python Version: 3.12
  • Reflex Version: 0.7.0
  • OS: Ubuntu 24.04.2
  • Browser (Optional): Firefox and Chrome, latest

Additional context
I converted all external calls to async when this message started appear but I cannot trace it to a specific change.

It might be a user error but the output is not helpful to find the root cause and I don't really know where to look to fix this

Copy link

linear bot commented Feb 21, 2025

@masenf masenf self-assigned this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants