coder login command results in i/o timeout error when not using a proxy
- Dominant language
- Go
- Stars
- 14.5k
- Forks
- 1.5k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 601
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 information
error: 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's `CoderCLIManager`,
`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.
Contributor guide
Assessment
This issue has not been assessed yet.