JuliaPluto / PlutoSliderServer.jl

Web server to run just the `@bind` parts of a Pluto.jl notebook
https://computationalthinking.mit.edu/
The Unlicense
135 stars 18 forks source link

Large statefile with `baked_statefile = true` fails to open #132

Closed jbrea closed 8 months ago

jbrea commented 10 months ago

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 commented 10 months ago

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

fonsp commented 10 months ago

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

jbrea commented 10 months ago

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

jbrea commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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