question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blank page: error vscode Handshake timed out

See original GitHub issue

OS/Web Information

  • Web Browser: Google Chrome Version 89.0.4389.114 (Official Build) (64-bit)
  • Local OS: Ubuntu 21.04
  • Remote OS: Raspbian GNU/Linux 10 (buster)
  • Remote Architecture: armv7l GNU/Linux
  • code-server --version:3 .9.2

Steps to Reproduce

  1. SSH in to raspberry pi
  2. Run this curl -fsSL https://code-server.dev/install.sh | sh
  3. Takes 22m usually
  4. Go to hosted site through local network, it’s blank and in the logs it gives this error:
error vscode Handshake timed out {"token": "..."}
  1. It was working fine before the upgrade.
  2. Maybe you can also add some fresh install instructions.

Expected

Browser should show coder as usual

Actual

Blank page.

Screenshot

Screenshot from 2021-04-04 02-11-43

Notes

This issue can be reproduced in VS Code: Yes/No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:43 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
snoglobecommented, Apr 22, 2021

I found out that if I connect to my server through it’s local IP then I don’t have any issues, but if I go to the domain name that I have pointed to my reverse proxy which does its magic and brings me to the code-server instance I get the blank screen. I can see the password screen just fine, but the actual app is blank.

2reactions
TobiRobycommented, Jul 8, 2021

I suddenly experienced the time out issue in my setup two days ago. Here is how I solved it.

Setup:

  • local: wsl ubuntu 20.04
  • remote: code-server (3.9.3) in docker on ubuntu 18.04-LTS running in azure
  • network VPN GlobalProtect

Besides the timeouts I also noticed that initializing a ssh connection took up to 10 seconds. After a quick web search pointed me towards not optimal/ compatible network settings with VPN. So I set the MTU settings of my local network adapter to 1200. Not only is ssh blazing fast now, but all code-server timeouts vanished.

So the timeouts are related to the network and not code-server itself. But I still have no clue, why my setup stopped working from one day to the other…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blank page: error vscode Handshake timed out Ā· Issue #3027
Go to hosted site through local network, it's blank and in the logs it gives this error: error vscode Handshake timed out {"token":...
Read more >
Running code server on gcp cloud shell gives error when ...
To run the vscode.sh file using terminal: ./vscode.sh. If a warning ā€œpermission deniedā€ comes, type chmod +x vscode.sh and then again proceedĀ ...
Read more >
Error: handshake timeout (Blank Screen) : r/codeserver - Reddit
Error : handshake timeout (Blank Screen). Hey fellow coders, since this morning I'm only getting a blank page when opening code-server.
Read more >
Remote Development Tips and Tricks - Visual Studio Code
Visual Studio Code Remote Development troubleshooting tips and tricks for SSH, Containers, and the Windows Subsystem for Linux (WSL)
Read more >
VSCode Remote Development Keep Disconnecting Error ...
... great feature of VSCode but by default it disconnect after 15 minutes. In this video I will show you how to increase...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found