Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

websocket 1009 message too big #5278

Unanswered
xczhanjun asked this question in Q&A
Jun 17, 2022 · 3 comments · 3 replies
Discussion options

I want to open a big (>15M) jupyter notebook ,the get the error msg: websocket err 1009 message too big

You must be logged in to vote

Replies: 3 comments 3 replies

Comment options

🤔 I honestly don't know how you get around this. Maybe @code-asher knows?

You must be logged in to vote
1 reply
Comment options

Hmm this probably needs fixing upstream, I guess they need to chunk large messages or something.

Comment options

изображение
Is this problem still not solved? My jupyter-notebook weighed 12mb and does not boot.

You must be logged in to vote
2 replies
Comment options

We never looked into it, I am not sure if it is a problem with code-server or VS Code, would be helpful if anyone can reproduce with Codespaces to see if it happens there as well.

Comment options

Hi yes, actually, I just ran code-server inside jupyter for my work.

The trick is that jupyter, namely tornado tornadoweb/tornado#3453 limits the messages that are transmitted via websockets.

And in the case of code-server, large files (for example, a large ipynb) are transmitted not in "chunks", but "whole".
i.e. 1 message consists of 10 or more megabytes at once. This is the problem.

There are two solutions:

  1. Make a "hole" on the tornado side in websockets - a bigger one
  2. Make a split of large objects into "chunks" on your side
Comment options

@xczhanjun @MiXaiLL76 I simply overwrite the default values when building the image.

See https://github.com/b-data/jupyterlab-python-docker-stack/blob/df9ebe2c0f0802718e2ab96ea1c76d3cba092358/base/latest.Dockerfile#L276-L283

i Python is installed at /usr/local

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /