Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

403 Errors #174

Open
Angel-G-Soto opened this issue Dec 8, 2023 · 2 comments
Open

403 Errors #174

Angel-G-Soto opened this issue Dec 8, 2023 · 2 comments

Comments

@Angel-G-Soto
Copy link

Hi! I'm currently working on a dasboard for a project and encountered the following error when using voila wit flex template:

[Voila] Kernel started: 95b91435-b44b-448e-b0ff-fd14d8ed667f
403 GET /voila/files/846.voila.js (127.0.0.1): File not allowlisted
403 GET /voila/files/846.voila.js (127.0.0.1) 1.00ms
403 GET /voila/files/6914.voila.js (127.0.0.1): File not allowlisted
403 GET /voila/files/6914.voila.js (127.0.0.1) 1.00ms
403 GET /voila/files/8291.voila.js (127.0.0.1): File not allowlisted
403 GET /voila/files/8291.voila.js (127.0.0.1) 1.53ms
403 GET /voila/files/3717.voila.js (127.0.0.1): File not allowlisted
403 GET /voila/files/3717.voila.js (127.0.0.1) 1.00ms

I think it has to do with voila not having access to the Ipywidgets; however, dropdown widgets work correctly on jupyter and the vanilla version of voila. I would appreciate if someone could guide me through a possible solution.

@chadbelisle
Copy link

Did you ever figure this out?

@jmp75
Copy link

jmp75 commented Apr 23, 2024

Same issue with the latest current versions from pip (albeit with a hybrid pip/conda-forge environment), and jupyter-flex example notebooks.

voila                     0.5.6
jupyter-flex              0.9.1
ipywidgets                8.0.4  

As pointed in issue #172, even if allowing .js or all files e.g.:

cd ~/src/jupyter-flex/examples/widgets
voila \
    --template=flex \
    --VoilaConfiguration.file_allowlist "['.*voila\\.js']" \
    mpl-histogram.ipynb

then we get 404 on js files.

404 GET /voila/files/6060.voila.js (127.0.0.1) 0.40ms
404 GET /voila/files/6944.voila.js (127.0.0.1) 0.52ms
404 GET /voila/files/2412.voila.js (127.0.0.1) 0.40ms
etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants