digitalocean / digitalocean/doctl

`doctl auth init` connection refused

Open
#1,447 3 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
3.4k
Forks
496
Avg merge
1d 2h
Merged PRs (30d)
31

Description

**Describe the Issue:**

```❯ doctl auth init
Please authenticate doctl for use with your DigitalOcean account. You can generate a token in the control panel at https://cloud.digitalocean.com/account/api/tokens

❯ Enter your access token: ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●

Validating token... ✘

Error: Unable to use supplied token to access API: Get "https://cloud.digitalocean.com/v1/oauth/token/info": dial tcp: lookup cloud.digitalocean.com on [::1]:53: read udp [::1]:35560->[::1]:53: read: connection refused
```

**Environment:**

- doctl version: doctl version 1.100.0-release
Git commit hash: 86fc3313
- OS: Ubuntu 22.04.3 LTS on WSL 2
- Installation method: Snap package

**Additional Details:**

Seems to be trying to use IPv6 exclusively, and won't fall back to IPv4? IPv6 is on (by default, I believe) in the WSL instance but turned off for the Windows host.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.