Skip to content
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

Proxy breaks with VSCode >= v4.10.1 #38

Open
TobiasGoerke opened this issue Apr 3, 2023 · 2 comments
Open

Proxy breaks with VSCode >= v4.10.1 #38

TobiasGoerke opened this issue Apr 3, 2023 · 2 comments

Comments

@TobiasGoerke
Copy link

TobiasGoerke commented Apr 3, 2023

Hey and thank you for creating and maintaining this very useful plugin!

We've been using it for quite a while but noticed it doesn't work for newer VSCode versions.

Reading the proxy's log, it becomes evident it cannot open up a WebSocket connection. I assume this is due to VSCode requiring an origin header starting with VSCode 4.10.1.
You can even see it failing at "ensureOrigin".

As a temporary fix: using v4.10.0 works fine.

Thanks!

[10:52:31] Extension host agent started. 
74 [I 2023-04-03 10:52:31.943 ServerApp] 302 GET /notebook/maintenance/vscodetest1/vscode/ (
[[email protected]](mailto:[email protected])
) 1669.19ms 
75 [I 2023-04-03 10:52:33.471 ServerApp] Trying to establish websocket connection to ws://localhost:44579/stable-5e805b79fcb6ba4c2d23712967df89a089da575b?reconnectionToken=b74173bd-079c-415c-a1dc-61e514670497&reconnection=false&skipWebSocketFrames=false 
76 [2023-04-03T08:52:33.476Z] error Forbidden HttpError: Forbidden 
77     at ensureOrigin (/usr/lib/code-server/out/node/http.js:288:15) 
78     at wrapped (/usr/lib/code-server/out/node/wsRouter.js:64:24) 
79     at Layer.handle [as handle_request] (/usr/lib/code-server/node_modules/router/lib/layer.js:102:15) 
80     at next (/usr/lib/code-server/node_modules/router/lib/route.js:144:13) 
81     at Route.dispatch (/usr/lib/code-server/node_modules/router/lib/route.js:109:3) 
82     at handle (/usr/lib/code-server/node_modules/router/index.js:515:11) 
83     at Layer.handle [as handle_request] (/usr/lib/code-server/node_modules/router/lib/layer.js:102:15) 
84     at /usr/lib/code-server/node_modules/router/index.js:291:22 
85     at param (/usr/lib/code-server/node_modules/router/index.js:368:14) 
86     at param (/usr/lib/code-server/node_modules/router/index.js:379:14) 
87     at Function.process_params (/usr/lib/code-server/node_modules/router/index.js:424:3) 
88     at next (/usr/lib/code-server/node_modules/router/index.js:285:10) 
89     at Function.handle (/usr/lib/code-server/node_modules/router/index.js:184:3) 
90     at router (/usr/lib/code-server/node_modules/router/index.js:59:12) 
91     at Layer.handle [as handle_request] (/usr/lib/code-server/node_modules/router/lib/layer.js:102:15) 
92     at trim_prefix (/usr/lib/code-server/node_modules/router/index.js:330:13) 
93     at /usr/lib/code-server/node_modules/router/index.js:294:7 
94     at Function.process_params (/usr/lib/code-server/node_modules/router/index.js:349:12) 
95     at Immediate.next (/usr/lib/code-server/node_modules/router/index.js:285:10) 
96     at Immediate.<anonymous> (/usr/lib/code-server/node_modules/router/index.js:671:15) 
97     at processImmediate (node:internal/timers:468:21) 
98 [E 2023-04-03 10:52:33.477 ServerApp] Uncaught exception GET /notebook/maintenance/vscodetest1/vscode/stable-5e805b79fcb6ba4c2d23712967df89a089da575b?reconnectionToken=b74173bd-079c-415c-a1dc-61e514670497&reconnection=false&skipWebSocketFrames=false (127.0.0.6)
@ehfd
Copy link

ehfd commented May 30, 2024

@xhochy @krassowski Has this been fixed or not? Can it be fixed?

@krassowski
Copy link
Contributor

I am running latest version of code-server without any issues. This issue is unclear to me as it mentions VSCode brand name but does not specify if it relates to usage of code server or openvscode server or an attempt to run vanilla VSCode which I don't know if ever worked well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants