VSCode Extension Gives Connection Error

When trying to connect to a workspace using the extension it gives the error on the image
No description
65 Replies
Codercord
Codercord5mo ago
<#1244292522339995769>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
Here is the Output logs
Phorcys
Phorcys5mo ago
the kex_exchange_identification: Connection closed by remote host means that the SSH connection was interrupted which usually means some firewall is blocking it do you have the Coder CLI installed on your machine ?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
no?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
now I have the coder cli
Phorcys
Phorcys5mo ago
you should login using coder login <url> then do coder ssh WebTask-Sujal and show the output
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
using terminal?
Phorcys
Phorcys5mo ago
yes
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
does not work
Phorcys
Phorcys5mo ago
oh yeah it didn't add it to the PATH
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
yeah
Phorcys
Phorcys5mo ago
add C:\Program Files\Coder\bin to your PATH
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
system or user?
Phorcys
Phorcys5mo ago
it doesn't really matter in our case but you should do system since the install is system-wide anyways
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
good now
Phorcys
Phorcys5mo ago
nice
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
thats the ssh output the hosted coder is outdated?
Phorcys
Phorcys5mo ago
yeah but that's not too bad usually
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
should I update it and try again?
Phorcys
Phorcys5mo ago
not really, that's just a warning the name i gave you was wrong
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
oh okay
Phorcys
Phorcys5mo ago
try coder ssh sujalgoel/WebTask-Sujal you need to prefix with the user when the workspace is not yours
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
connected
Phorcys
Phorcys5mo ago
okay can you try opening your SSH configuration file and showing the Coder section you can do Ctrl+Shift+P and search "Open SSH Configuration" in VSCode
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
sure
# --- START CODER VSCODE ---
Host coder-vscode--*
ConnectTimeout 0
LogLevel ERROR
ProxyCommand "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\bin\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\net" --log-dir "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\log" --session-token-file "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\session_token" --url-file "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\url" %h
SetEnv CODER_SSH_SESSION_TYPE=vscode
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
# --- END CODER VSCODE ---
# --- START CODER VSCODE ---
Host coder-vscode--*
ConnectTimeout 0
LogLevel ERROR
ProxyCommand "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\bin\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\net" --log-dir "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\log" --session-token-file "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\session_token" --url-file "c:\Users\micha\AppData\Roaming\Code - Insiders\User\globalStorage\coder.coder-remote\url" %h
SetEnv CODER_SSH_SESSION_TYPE=vscode
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
# --- END CODER VSCODE ---
Phorcys
Phorcys5mo ago
okay can you try running ssh coder-vscode--sujalgoel--WebTask-Sujal -v manually ?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
from vs code terminal?
Phorcys
Phorcys5mo ago
from any terminal
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
PS C:\Users\micha> ssh coder-vscode--sujalgoel--WebTask-Sujal -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\\Users\\micha/.ssh/config
debug1: C:\\Users\\micha/.ssh/config line 30: Applying options for coder-vscode--*
debug1: Executing proxy command: exec "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\bin\\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\net" --log-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\log" --session-token-file "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\session_token" --url-file "c:\\Users\\micha\\AppData\\Ro
debug1: identity file C:\\Users\\micha/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
Encountered an error running "coder vscodessh", see "coder vscodessh --help" for more information
error: Trace=[find workspace and agent: ]
Resource not found or you do not have access to this resource
kex_exchange_identification: Connection closed by remote host
PS C:\Users\micha>
PS C:\Users\micha> ssh coder-vscode--sujalgoel--WebTask-Sujal -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\\Users\\micha/.ssh/config
debug1: C:\\Users\\micha/.ssh/config line 30: Applying options for coder-vscode--*
debug1: Executing proxy command: exec "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\bin\\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\net" --log-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\log" --session-token-file "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\session_token" --url-file "c:\\Users\\micha\\AppData\\Ro
debug1: identity file C:\\Users\\micha/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
Encountered an error running "coder vscodessh", see "coder vscodessh --help" for more information
error: Trace=[find workspace and agent: ]
Resource not found or you do not have access to this resource
kex_exchange_identification: Connection closed by remote host
PS C:\Users\micha>
here
Phorcys
Phorcys5mo ago
hmm can you log in to Coder again ? by doing Ctrl+Shift+P and searching "Coder: login"
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Phorcys
Phorcys5mo ago
retry this command now ?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
PS C:\Users\micha> ssh coder-vscode--sujalgoel--WebTask-Sujal -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\\Users\\micha/.ssh/config
debug1: C:\\Users\\micha/.ssh/config line 30: Applying options for coder-vscode--*
debug1: Executing proxy command: exec "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\bin\\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\net" --log-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\log" --session-token-file "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\session_token" --url-file "c:\\Users\\micha\\AppData\\Ro
debug1: identity file C:\\Users\\micha/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
Encountered an error running "coder vscodessh", see "coder vscodessh --help" for more information
error: Trace=[find workspace and agent: ]
Resource not found or you do not have access to this resource
kex_exchange_identification: Connection closed by remote host
PS C:\Users\micha>
PS C:\Users\micha> ssh coder-vscode--sujalgoel--WebTask-Sujal -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\\Users\\micha/.ssh/config
debug1: C:\\Users\\micha/.ssh/config line 30: Applying options for coder-vscode--*
debug1: Executing proxy command: exec "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\bin\\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\net" --log-dir "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\log" --session-token-file "c:\\Users\\micha\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\coder.coder-remote\\session_token" --url-file "c:\\Users\\micha\\AppData\\Ro
debug1: identity file C:\\Users\\micha/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\micha/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\micha/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
Encountered an error running "coder vscodessh", see "coder vscodessh --help" for more information
error: Trace=[find workspace and agent: ]
Resource not found or you do not have access to this resource
kex_exchange_identification: Connection closed by remote host
PS C:\Users\micha>
again
Phorcys
Phorcys5mo ago
that's very weird
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
yeah
Phorcys
Phorcys5mo ago
i am doing some testing
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
I can connect to mine
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
not others
Phorcys
Phorcys5mo ago
Could you try running the following snippet in PowerShell ?
$CoderStorage = "$($env:APPDATA)\Code - Insiders\User\globalStorage\coder.coder-remote"

$Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaces" `
-H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }

$Result.workspaces | Format-Table owner_name,name
$CoderStorage = "$($env:APPDATA)\Code - Insiders\User\globalStorage\coder.coder-remote"

$Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaces" `
-H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }

$Result.workspaces | Format-Table owner_name,name
it does an API request to list workspaces with the session token configured in your Coder extension I think the token generated with the extension does not have access to the workspace you're trying to access
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
PS C:\Windows\system32> $Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaces" `
>> -H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }
gc : Cannot find path 'C:\Users\micha\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\url' because it does
not exist.
At line:1 char:32
+ $Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspa ...
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\micha\...oder-remote\url:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\micha\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\session_token'
because it does not exist.
At line:2 char:36
+ ... -H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\micha\...e\session_token:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Invoke-RestMethod : Invalid URI: The hostname could not be parsed.
At line:1 char:11
+ $Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], UriFormatException
+ FullyQualifiedErrorId : System.UriFormatException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
PS C:\Windows\system32> $Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaces" `
>> -H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }
gc : Cannot find path 'C:\Users\micha\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\url' because it does
not exist.
At line:1 char:32
+ $Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspa ...
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\micha\...oder-remote\url:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\micha\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\session_token'
because it does not exist.
At line:2 char:36
+ ... -H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\micha\...e\session_token:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Invoke-RestMethod : Invalid URI: The hostname could not be parsed.
At line:1 char:11
+ $Result = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], UriFormatException
+ FullyQualifiedErrorId : System.UriFormatException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Phorcys
Phorcys5mo ago
my bad you're on insiders too
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
yes
Phorcys
Phorcys5mo ago
retry the snippet now i've edited it
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Phorcys
Phorcys5mo ago
so it does see it
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
yes
Phorcys
Phorcys5mo ago
$CoderStorage = "$($env:APPDATA)\Code - Insiders\User\globalStorage\coder.coder-remote"

$AgentResult = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/users/sujalgoel/workspace/WebTask-Sujal" `
-H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }

$AgentID = ($AgentResult.latest_build.resources | Where-Object { $_.agents -ne $null })[0].agents.id

Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaceagents/${AgentID}/logs" `
-H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }
$CoderStorage = "$($env:APPDATA)\Code - Insiders\User\globalStorage\coder.coder-remote"

$AgentResult = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/users/sujalgoel/workspace/WebTask-Sujal" `
-H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }

$AgentID = ($AgentResult.latest_build.resources | Where-Object { $_.agents -ne $null })[0].agents.id

Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaceagents/${AgentID}/logs" `
-H @{ "Coder-Session-Token" = "$(gc "$CoderStorage\session_token")" }
could you try this @Dãrķ Søŭł ?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
Invoke-RestMethod : {"message":"\"user\" must be an existing uuid or username.","detail":"queried user=\"phorcys\""}
At line:3 char:16
+ ... entResult = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/users ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Cannot index into a null array.
At line:6 char:1
+ $AgentID = ($AgentResult.latest_build.resources | Where-Object { $_.a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray

Invoke-RestMethod : A positional parameter cannot be found that accepts argument 'System.Collections.Hashtable'.
At line:8 char:1
+ Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaceagents/$ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-RestMethod], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Invoke-RestMethod : {"message":"\"user\" must be an existing uuid or username.","detail":"queried user=\"phorcys\""}
At line:3 char:16
+ ... entResult = Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/users ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Cannot index into a null array.
At line:6 char:1
+ $AgentID = ($AgentResult.latest_build.resources | Where-Object { $_.a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray

Invoke-RestMethod : A positional parameter cannot be found that accepts argument 'System.Collections.Hashtable'.
At line:8 char:1
+ Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaceagents/$ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-RestMethod], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Phorcys
Phorcys5mo ago
whoops
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
again insiders
Phorcys
Phorcys5mo ago
no this time i just forgot to replace the workspace name try now
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
Invoke-RestMethod : WebSocket protocol violation: Connection header "" does not contain Upgrade
{"message":"Failed to accept websocket.","detail":"failed to accept WebSocket connection: WebSocket protocol
violation: Connection header \"\" does not contain Upgrade"}
At line:8 char:1
+ Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaceagents/$ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Invoke-RestMethod : WebSocket protocol violation: Connection header "" does not contain Upgrade
{"message":"Failed to accept websocket.","detail":"failed to accept WebSocket connection: WebSocket protocol
violation: Connection header \"\" does not contain Upgrade"}
At line:8 char:1
+ Invoke-RestMethod "$(gc "$CoderStorage\url")/api/v2/workspaceagents/$ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Phorcys
Phorcys5mo ago
sorry wrong endpoint again try now i don't need the output as it can be sensitive i just need to know if you're getting the logs
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
a lot of ids
Phorcys
Phorcys5mo ago
yeah so it has permission to access those
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
yeah
Phorcys
Phorcys5mo ago
i have a vague idea of what might be going on but I suspect this was patched in the latest version could you update your coder deployent and retry ?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
sure! I will update the coder we host
Codercord
Codercord5mo ago
@Dãrķ Søŭł closed the thread.
Want results from more Discord servers?
Add your server