-
Notifications
You must be signed in to change notification settings - Fork 44
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
[BUG] Cannot login #362
Comments
Hi @seagullmouse, sorry that you're running into an issue here! Can you share the output of doing an unauthenticated curl against our API? I'm suspecting a networking issue. curl -v 'https://api.doppler.com/v3/projects' |
|
OK, that request is looking solid to me. Can you try a POST? curl -X POST https://api.doppler.com/v3/auth/cli/authorize -H 'Content-Type: application/json' --data '{"code": "test"}' |
|
Does the login perform some frequent polling of the API? I wonder if my work has some policy on network traffic and thinks this is a threat. |
It does indeed -- the CLI makes that You could also try running that curl every 2 seconds and see if it starts failing. That would be a pretty telling piece of evidence. |
Couple of observations
|
Is there a workaround to get a token onto my machine? |
Interesting. One workaround would be to configure your CLI to use a Doppler personal token for authentication. Click on the "Tokens" link in the left menu and select the "Personal" tab. You can only have one personal token at a time so you'll need to roll your existing personal token if you already have one. Once you've copied the token secret, you can load it into the CLI with |
Thanks. I've tried with the personal token but still run into issues with the CLI. E.g.
Something is more fundamentally wrong here. |
Darn. And I'm guessing that this works for you? curl -H "Authorization: Bearer $(doppler configure get token --plain)" 'https://api.doppler.com/v3/configs?project=YOUR_PROJECT_NAME' |
I've finally found a related issue at my company. They have a network filter installed that is buggy. Thanks for your help on this! |
Awesome, I'm glad you were able to track it down! |
Describe the bug
When I run
doppler login
I hit errors on a brand new Mac M1.To Reproduce
Steps to reproduce the behavior. Please include output from running the command with
--debug
.The same error occurs with ? Open the authorization page in your browser? (Y/n) = n
Expected behavior
I should be able to login
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
CLI Version:
Version: v3.53.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: