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

receiving WRONG_VERSION_NUMBER when pasting API key into extension #84

Open
ericpaulsen opened this issue Apr 20, 2023 · 7 comments
Open
Labels
help wanted Extra attention is needed

Comments

@ericpaulsen
Copy link
Member

ericpaulsen commented Apr 20, 2023

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 ericpaulsen added bug help wanted Extra attention is needed labels Apr 20, 2023
@ericpaulsen
Copy link
Member Author

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

@rodrimaia rodrimaia self-assigned this Apr 28, 2023
@matifali
Copy link
Member

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

@ericpaulsen
Copy link
Member Author

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

@ericpaulsen
Copy link
Member Author

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>.

@bpmct
Copy link
Member

bpmct commented May 3, 2023

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

@ericpaulsen
Copy link
Member Author

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

image

@ericpaulsen
Copy link
Member Author

related #105

@matifali matifali removed the bug label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants