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

LookupError: <ContextVar name='local_steps' at 0x7fde381385e0> #1494

Open
seleniumpython2016 opened this issue Oct 31, 2024 · 1 comment
Open
Labels
bug Something isn't working needs-triage

Comments

@seleniumpython2016
Copy link

I use fastapi mount chainlit,and I use a2wsgi conver to wsgi,beacase I use gunicorn。the chanlit version is 1.3.0rc1 .when I open the chainlit url,the page can open,but the page shows that " it can not connect the server ". the errror log as the follows, who can help me?

2024-10-31 17:38:59 - <ContextVar name='local_steps' at 0x7fde381385e0>
Traceback (most recent call last):
File "/opt/app/.venv/lib/python3.10/site-packages/chainlit/utils.py", line 44, in wrapper
return await user_function(**params_values)
File "/opt/app/.venv/lib/python3.10/site-packages/chainlit/step.py", line 99, in async_wrapper
async with Step(
File "/opt/app/.venv/lib/python3.10/site-packages/chainlit/step.py", line 431, in aenter
previous_steps = local_steps.get() or []
LookupError: <ContextVar name='local_steps' at 0x7fde381385e0>
2024-10-31 17:39:44 - Translated markdown file for zh-CN not found. Defaulting to chainlit.md.
2024-10-31 17:39:45 - <ContextVar name='local_steps' at 0x7fde381385e0>

@dosubot dosubot bot added the bug Something isn't working label Oct 31, 2024
Copy link

dosubot bot commented Nov 1, 2024

Sorry you're experiencing issues.

Could you please attach the full code and all steps required for us to replicate the problem?

Written by @dosu, edited by dokterbob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant