- Notifications
You must be signed in to change notification settings - Fork926
Description
I encountered an issue today when attempting to run the following command:
coder login "https://URL"
The result was the following error message:
Encountered an error running "coder login", see "coder login --help" for more informationerror: Failed to check server "https://URL" for first user, is the URL correct and is coder accessible from your browser? Error - has initial user: Get "https://URL/api/v2/users/first": dial tcp URL:443: i/o timeout
Root Cause
The issue arises because, without a proxy, there is no access to the internet. Only when connected through a proxy is there internet access, which allows the system to reach the Coder instance.
While HTTP requests made from JetBrains Gateway'sCoderCLIManager
,
CoderCLIManager - GET 200 https://URL/bin/coder-windows-amd64.exe
are successful, it's important to note that JetBrains Gateway uses the system's Proxy settings.
Question
Is there a way for the Coder CLI to use proxy settings from Windows, or alternatively, can a proxy be configured for Coder CLI to make requests via HTTP or another type of proxy? This would ensure that Coder CLI can function properly in environments where direct internet access is restricted without a proxy.
Without proxy settings in Coder CLI, requests timeout due to the lack of direct internet access.
Environment
OS: Windows 10
Would appreciate any guidance on configuring proxy settings for Coder CLI.