Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when on VPN #845

Open
FreeTheSmoke opened this issue Jul 29, 2020 · 6 comments
Open

Error when on VPN #845

FreeTheSmoke opened this issue Jul 29, 2020 · 6 comments

Comments

@FreeTheSmoke
Copy link

Attempting to authenticate with API token using 'doctl auth init' was not possible when on my VPN (Service:Private Internet Access. Server:Melbourne, Aus) it prompts for entry of the token, but after that it just spews thousands of lines of junk.
I saw cloudflare written somewhere amongst it all and after dropping the VPN, and authenticating with token, VPN can be used again.

Blasting a whole webpage, including images onto the stdout is not super helpful, could you maybe detect the use of CLI Client and change the behavior to a short, helpful message?

@bkiac
Copy link

bkiac commented Nov 10, 2020

I have the same error problem.
This is the error message:

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

Disabling VPN resolves the issue.

@andrewsomething
Copy link
Member

Are you able to access api.digitalocean.com at all with your VPN enabled (e.g. using curl)? Or does this only effect doctl?

@bkiac
Copy link

bkiac commented Nov 10, 2020

Yes, it only affects doctl.

$ curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DO_TOKEN" "https://api.digitalocean.com/v2/account"
{"account":{"droplet_limit":10,"floating_ip_limit":3,"volume_limit":10,"email":"<my email>","uuid":"<my uuid>","email_verified":true,"status":"active","status_message":""}}

$ doctl account get
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

@scotchneat
Copy link
Contributor

@FreeTheSmoke & @bkiac can you share which OS you're using?

@bkiac
Copy link

bkiac commented Nov 10, 2020

My OS is Pop!_OS 20.04 LTS and my VPN is ExpressVPN 3.0.2.12.

@bentranter
Copy link
Member

This may be related to golang/go#25321.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants