coder icon indicating copy to clipboard operation
coder copied to clipboard

"Open folder" from code-server hangs

Open code-asher opened this issue 3 years ago • 2 comments

The way "open folder" is implemented is to set window.location.href with the folder query variable.

Manually editing the URL, manually calling window.location.href, or even just reloading the page can also trigger the hang. It may take several attempts or waiting a bit (at least 7-8 seconds seems to be the ticket) before doing the navigation. The resulting request will be pending forever.

This is on Coder v0.8.1-devel+6e63487b running in an image with the coder template. It happens on both Firefox and Chromium.

I was not able to reproduce it outside of Coder.

code-asher avatar Jul 29 '22 21:07 code-asher

Interestingly it does not happen if I forward the code-server port through SSH and access code-server that way. I guess this implicates the networking or the proxy in some way?

code-asher avatar Jul 29 '22 21:07 code-asher

I believe #2779 is coming in soon as an environment variable. Will be interesting to test if this still happens once that is done.

bpmct avatar Jul 30 '22 22:07 bpmct

Closing in favor of #2779.

kylecarbs avatar Aug 24 '22 17:08 kylecarbs