doctl icon indicating copy to clipboard operation
doctl copied to clipboard

connect api prompts error cannot assign requested address

Open ghost opened this issue 4 years ago • 2 comments

Describe the Issue:

I try to install it via source package from release page, while I execute command on my laptop (Arch Linux), it prompts error info

Error: Get "https://api.digitalocean.com/v2/account": dial tcp: lookup api.digitalocean.com on [::1]:53: dial udp [::1]:53: connect: cannot assign requested address

Then I try to install it on DigitalOcean droplet (Ubuntu 20.10), it works well.

But if I install it via pacman package manager on my laptop, the binary file works well.

I don't know what happens.

Environment:

  • doctl version: doctl version 1.55.0-release
  • OS: Arch Linux
  • Installation method: Installed from source

Additional Details:

# doctl account ratelimit --trace

doctl: 2021/01/23 11:29:52 -> "GET /v2/account HTTP/1.1\r\nHost: api.digitalocean.com\r\nUser-Agent: doctl/1.55.0-release (linux amd64) godo/1.57.0\r\nAccept: application/json\r\nAccept-Encoding: gzip\r\n\r\n"

ghost avatar Jan 23 '21 16:01 ghost

@MaxdSre thank you for reporting the issue. The message you receive is the same others have reported in #845. Are you receiving the error when running doctl auth init and do you happen to be connected to a VPN at the time?

scotchneat avatar Jan 25 '21 15:01 scotchneat

I also hit

root@master:/home/ubuntu/tm_scrape_wipo# doctl compute droplet list 
Error: Get "https://api.digitalocean.com/v2/droplets?page=1&per_page=200": dial tcp: lookup api.digitalocean.com on [::1]:53: read udp [::1]:38657->[::1]:53: read: connection refused

No vpn involved.

jeremy-rutman avatar Sep 22 '21 21:09 jeremy-rutman