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

Large statefile with baked_statefile = true fails to open #132

Closed
jbrea opened this issue Dec 8, 2023 · 6 comments · Fixed by fonsp/Pluto.jl#2783
Closed

Large statefile with baked_statefile = true fails to open #132

jbrea opened this issue Dec 8, 2023 · 6 comments · Fixed by fonsp/Pluto.jl#2783

Comments

@jbrea
Copy link

jbrea commented Dec 8, 2023

I am stuck with the following error message for one of my notebooks
23 12 08T09:02:49

Funnily enough, the page loads just fine in some browsers (e.g. qutebrowser) but I get the above error message in others (e.g. firefox).

Any ideas?

@fonsp
Copy link
Member

fonsp commented Dec 9, 2023

Can you copy and paste the full contents of the page?

@fonsp
Copy link
Member

fonsp commented Dec 9, 2023

and could you say a bit more about what steps you took to get here?

@jbrea
Copy link
Author

jbrea commented Dec 10, 2023

Thanks. Here is the url of the hosted notebook and this is the source and the Dockerfile.

@jbrea
Copy link
Author

jbrea commented Dec 11, 2023

Could it be that this happens when the statefile exceeds a certain size? I removed some of the embedded images and now the page seems to load fine.

@fonsp
Copy link
Member

fonsp commented Dec 13, 2023

Interesting! Yes the problem is probably that the statefile gets too big.

For PlutoSliderServer I would always recommend setting Export_baked_statefile = false, not sure why that's not the default.

That way, the statefile is stored in a separate file, instead of base64-encoded in a javascript string. Then there is no file size limit.

@fonsp fonsp changed the title The statefile failed to download. TypeError: Request constructor Large statefile with baked_statefile = true fails to open Dec 13, 2023
@fonsp
Copy link
Member

fonsp commented Dec 13, 2023

I think we should:

  1. Find out what the maximum size is and show an @error when it happens.
  2. Consider making baked_statefile=true the default

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

Successfully merging a pull request may close this issue.

2 participants