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

0.48 -> 0.50 Introduced this error: #107

Open
edmund-multion opened this issue Mar 13, 2025 · 0 comments
Open

0.48 -> 0.50 Introduced this error: #107

edmund-multion opened this issue Mar 13, 2025 · 0 comments

Comments

@edmund-multion
Copy link

500 Server Error
LookupError: <ContextVar name='tmpl_globals_139730657537248' at 0x7f158ab8d080>

Traceback
File /usr/local/lib/python3.12/site-packages/jinjax/catalog.py, line 254, in tmpl_globals ‒
251.             tmpl_globals[self._key] = ContextVar(name)
252.             tmpl_globals[self._key].set({})
253.
254.         return tmpl_globals[self._key].get()
255.
256.     @tmpl_globals.setter
257.     def tmpl_globals(self, value: dict[str, t.Any]) -> None:
File /usr/local/lib/python3.12/site-packages/jinjax/catalog.py, line 579, in _get_from_cache +
File /usr/local/lib/python3.12/site-packages/jinjax/catalog.py, line 410, in irender +
File templates/base.html, line 28, in top-level template code +
File src/pages/chat/list.html, line 1, in top-level template code +
File /usr/local/lib/python3.12/site-packages/jinja2/environment.py, line 942, in handle_exception +
File /usr/local/lib/python3.12/site-packages/jinja2/environment.py, line 1295, in render +
File /usr/local/lib/python3.12/site-packages/starlette/templating.py, line 40, in __init__ +
File /usr/local/lib/python3.12/site-packages/starlette/templating.py, line 209, in TemplateResponse

On python 3.12.8

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

1 participant