-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
zlib error with websocket compression enabled #3014
Comments
In the browser, it hangs, then says that it cannot reconnect. |
I have the same issues on a Raspberry Pi 4 with Debian using standard password authentication. |
Same issues on Termux for Android |
@gbruno16 are you able to post reproduction steps? Might help with debugging as I have an Android I can test on. |
I followed exactly the steps in https://github.com/cdr/code-server/blob/main/docs/install.md#termux on a fresh installation of Termux 0.108. |
Okay, thanks for the notes! Can you try running with |
I hope this is what you asked for: [2021-04-03T09:27:04.844Z] info code-server 3.9.2 109d2ce |
Perfect! Exactly what we needed. I've seen this same issue so you're not alone. Thanks for posting the logs! We'll look into this. |
Same problem here. |
Hi can you try upgrade to Feel free to post in the release discussion as well. |
The issue is resolved after the update, at least for me. 👍 |
I updated, and received these errors in journalctl: So I updated vscode to 1.55.1-1617808414 Now I'm seeing these same errors: Also, code server version 3.9.1 works... |
Interesting! Thanks for confirming @lovetodream Thanks for the logs @sweet-mentat - we'll have to dig into this a bit more. |
I'm getting the same issue, 4월 25 16:40:32 localhost.localdomain code-server[22661]: } I'm using SBC, Udoo X86 advanced with additional SSD, just on eMMC. |
Same here
Running on k3s from the codercom/code-server:3.9.3 docker image. |
Just FYI for the next release we will be toggling websocket compression off by default so hopefully this resolves it for everyone. If not then the problem is something else. |
@code-asher @jsjoeio I believe this issue will be resolved in the vscode fork. While it’s currently disabled, zlib compression does appear to work in local testing if the configuration is negotiated by the client. |
That's awesome to hear! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
OS/Web Information
code-server --version
: v3.9.2config.yaml:
Steps to Reproduce
bind-addr: 127.0.0.1:9001
auth: none
cert: /usr/lib/code-server/cert.pem
cert-key: /usr/lib/code-server/key.pem
Expected
journalctl:
Apr 01 15:16:16 ip-10---* systemd[11951]: Started code-server.
Apr 01 15:16:18 ip-10---* code-server[13218]: [2021-04-01T15:16:18.691Z] info code-server 3.8.1 41ad0c0
Apr 01 15:16:18 ip-10---* code-server[13218]: [2021-04-01T15:16:18.694Z] info Using user-data-dir ~/.local/share/code-server
Apr 01 15:16:18 ip-10---* code-server[13218]: [2021-04-01T15:16:18.734Z] info Using config file ~/.config/code-server/config.yaml
Apr 01 15:16:18 ip-10---* code-server[13218]: [2021-04-01T15:16:18.734Z] info HTTP server listening on http://127.0.0.1:9001
Apr 01 15:16:18 ip-10---* code-server[13218]: [2021-04-01T15:16:18.734Z] info - Authentication is disabled
Apr 01 15:16:18 ip-10---* code-server[13218]: [2021-04-01T15:16:18.734Z] info - Using certificate for HTTPS: /usr/lib/code-server/cert.pem
Actual
journalctl:
Mar 31 21:12:22 ip-10---* systemd[8572]: Started code-server.
Mar 31 21:12:23 ip-10---* code-server[26055]: [2021-03-31T21:12:23.935Z] info code-server 3.9.2 109d2ce
Mar 31 21:12:23 ip-10---* code-server[26055]: [2021-03-31T21:12:23.937Z] info Using user-data-dir ~/.local/share/code-server
Mar 31 21:12:23 ip-10---* code-server[26055]: [2021-03-31T21:12:23.970Z] info Using config file ~/.config/code-server/config.yaml
Mar 31 21:12:23 ip-10---* code-server[26055]: [2021-03-31T21:12:23.970Z] info HTTP server listening on http://127.0.0.1:9001
Mar 31 21:12:23 ip-10---* code-server[26055]: [2021-03-31T21:12:23.970Z] info - Authentication is disabled
Mar 31 21:12:23 ip-10---* code-server[26055]: [2021-03-31T21:12:23.970Z] info - Using certificate for HTTPS: /usr/lib/code-server/cert.pem
Mar 31 21:13:08 ip-10---* code-server[26055]: Error: invalid distance too far back
Mar 31 21:13:08 ip-10---* code-server[26055]: at Zlib.zlibOnError [as onerror] (zlib.js:180:17) {
Mar 31 21:13:08 ip-10---* code-server[26055]: errno: -3,
Mar 31 21:13:08 ip-10---* code-server[26055]: code: 'Z_DATA_ERROR'
Mar 31 21:13:08 ip-10---* code-server[26055]: }
Mar 31 21:13:08 ip-10---* code-server[26055]: [2021-03-31T21:13:08.418Z] warn vscode invalid distance too far back
Mar 31 21:13:18 ip-10---* code-server[26055]: [2021-03-31T21:13:18.326Z] error vscode Handshake timed out {"token":"7310faa7-c169-4ed7-9f78-73d1af8bbedf"}
Notes
This issue can be reproduced in VS Code: No
The text was updated successfully, but these errors were encountered: