vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

receiving `WRONG_VERSION_NUMBER` when pasting API key into extension

Open ericpaulsen opened this issue 1 year ago • 7 comments

using VS Code on a Windows Desktop, using latest version of Coder CLI & server, 0.22.2. the session token input is the one received via the CLI auth flow:

image

despite the invalid token, Coder continues to attempt the connection. the user is even able to see the directory. here's the log output:

[16:37:14.540] Running script with connection command: "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 52895 "coder-vscode--<username>--first" bash 
[16:37:14.558] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[16:37:16.415] > ssh: Could not resolve hostname coder-vscode--<username>--first: Name or service no > t known > ]0;C:\WINDOWS\System32\cmd.exe
[16:37:16.415] Got some output, clearing connection timeout
[16:37:16.429] > The process tried to write to a nonexistent pipe.
[16:37:17.812] "install" terminal command done
[16:37:17.813] Install terminal quit with output: t known
[16:37:17.813] Received install output: t known
[16:37:17.814] Failed to parse remote port from server output
[16:37:17.816] Resolver error: Error: at m.Create (c:\Users\nadendk\.vscode\extensions\ms-vscode-remote.remote-ssh-0.100.0\out\extension.js:1:584145) at t.handleInstallOutput (c:\Users\nadendk\.vscode\extensions\ms-vscode-remote.remote-ssh-0.100.0\out\extension.js:1:582705) at t.tryInstall (c:\Users\nadendk\.vscode\extensions\m

ericpaulsen avatar Apr 20 '23 01:04 ericpaulsen

@kylecarbs @bpmct this seems to be a Windows-specific issue, as I confirmed with prospect that their macOS users are not seeing this behavior.

ericpaulsen avatar Apr 28 '23 19:04 ericpaulsen

I regularly use windows and have never run into this Are there any specific steps to reproduce?

matifali avatar Apr 28 '23 19:04 matifali

@deansheather says this is likely proxy or cert related. I've followed up with the customer to check their proxy & certificate trust settings.

ericpaulsen avatar May 01 '23 15:05 ericpaulsen

the VS Code proxy settings are the same as the Windows machine, and the Coder certificate is trusted. this is validated because they are able to connect via coder login <https://domain.com>.

ericpaulsen avatar May 03 '23 16:05 ericpaulsen

It's possible the VS Code extension does not respect HTTP_PROXY. @rodrimaia said he's looking into this today. #78

bpmct avatar May 03 '23 17:05 bpmct

@bpmct @rodrimaia - i had them upgrade to extension version 0.1.18, and received a new error:

image

ericpaulsen avatar May 05 '23 15:05 ericpaulsen

related #105

ericpaulsen avatar Jul 05 '23 19:07 ericpaulsen