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

Django autoload_handle broken #3099

Closed
sdc50 opened this issue Jan 14, 2022 · 0 comments · Fixed by #3100
Closed

Django autoload_handle broken #3099

sdc50 opened this issue Jan 14, 2022 · 0 comments · Fixed by #3100
Labels
type: bug Something isn't correct or isn't working

Comments

@sdc50
Copy link
Contributor

sdc50 commented Jan 14, 2022

ALL software version info

Panel = 0.13.0a25
Bokeh = 2.4.2
Django = 2.2.14

When loading a Panel app embedded in Django, the AutoloadJsConsumer call just hangs. After stepping through the code it
appears there is an error, which causes it to enter an eternal loop:

> /Users/rditlsc9/miniconda/envs/tethys-vtime/lib/python3.7/site-packages/panel/io/django.py(37)autoload_handle()
-> js = autoload_js_script(resources, session.token, element_id, app_path, absolute_url)

TypeError: autoload_js_script() missing 1 required positional argument: 'absolute_url'

It appears that #2919 changed the signature of autoload_js_script, but the call to it in panel/io/django.py:autoload_handle wasn't updated accordingly.

As a side note - is there a better way to get this type of error to log? I wasn't able to see any indication of an error until I stepped through the code in a debugger.

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants