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

stripe cli login stuck on "Waiting for confirmation" #209

Closed
davefinarb opened this issue Oct 1, 2019 · 10 comments
Closed

stripe cli login stuck on "Waiting for confirmation" #209

davefinarb opened this issue Oct 1, 2019 · 10 comments
Labels
bug Something isn't working

Comments

@davefinarb
Copy link

Issue

stripe login --api-key pk_test_****
it then shows
Your pairing code is: some-codes
This pairing code verifies your authentication with Stripe.
Press Enter to open the browser (^C to quit)
⣯ Waiting for confirmation...
Then it sticks in it and after some mins it shows
exceeded max attempts and quits

Expected Behavior

Probably opens a browser. Not sure.

Environment

Ubuntu 19 Linux

@davefinarb davefinarb added the bug Something isn't working label Oct 1, 2019
@ob-stripe
Copy link
Contributor

Hi @davefinarb, thanks for the report. Indeed, the stripe login command should open your browser and take you to a confirmation page to grant access to your Stripe account to the CLI.

Could you confirm the following?

  • Are you running the stripe login command from a graphical environment?
  • What happens if you run xdg-open https://stripe.com from a terminal?

@davefinarb
Copy link
Author

davefinarb commented Oct 11, 2019

Strangely both stripe login and xdg-open https://stripe.com are working now on the same machine.

@ob-stripe
Copy link
Contributor

Weird! Thanks for closing the loop anyway.

@chrisjsimpson
Copy link

Same here, running
xdg-open https://stripe.com

Resets whatever it needed to.

Before this, firefox opens, but it's just 'waiting' (no url in url bar)

@chrisjsimpson
Copy link

Hi @ob-stripe

Made a quick video showing this behaviour https://www.youtube.com/watch?v=jrgS6uiPm1M&feature=youtu.be

stripe version 1.5.1

@garyo
Copy link

garyo commented Feb 5, 2021

Is there a way to print the browser URL instead, on systems that don't have a browser installed (I'm on WSL1 on Windows)? I know it's going to create a restricted key with certain permissions, so I'd like to use this method rather than creating my own restricted key that might have the wrong permissions.

@jonpastore
Copy link

I'm having the same problem, running pop_os. Tried xdg-open https://stripe.com and got the error that DISPLAY was not set, I exported the DISPLAY=:0 and it still fails. having the tool display the path so we can at least copy and paste it into a browser would be very handy.

@ntm1627
Copy link

ntm1627 commented Feb 17, 2021

Any same solution for windows, running the command from Windows PowerShell is ending with the same error message.
Thanks

@danjdewhurst
Copy link

Any same solution for windows, running the command from Windows PowerShell is ending with the same error message. Thanks

I started having a similar issue, using command prompt instead of powershell seemed to fix it.

@cp99says
Copy link

Too late to address the issue, but I was having the same issue.

I tried running the stripe-cli using interactive mode, and provided the secret key, it worked.

stripe login --interactive
<provide your secret key>

and you are good to go!!

Too late to address the issue, but this is how I fixed it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants