-
Notifications
You must be signed in to change notification settings - Fork 387
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
Changing Projects on the stripe CLI does not change the webhook secret. #1118
Comments
I also ran into this exact issue. I logged out of my account and back in with another account but my stripe cli continues to connect to the previous account. I am unable to receive webhooks from my new account. Uninstalling and reinstalling the CLI does not help and the webhook secret is not stored in |
Same issue. I changed the webhook and changed even my account and login interactively and non interactively but stripe cli still attached to my old webhook secrect which I deleted that webhook even. |
Same issue here. Not able to reset webhook secret. |
Any fix for this? Running into this problem as well. |
I had a STRIPE_API_KEY stored as env var, which seems to overwrite config file. After deleting it, the --api-key flag works for me |
to resolve this I just started using the stripe cli docker container. Whatever data is being stored on the system by the CLI to cause this bug is circumvented by just reinstantiating the container everytime you need it. You can put the container in a compose file too so I would highly recommend it. Doesn't seem like the underlying issue here is every going to be fixed. |
Issue
I am using the Stripe CLI to listen for webhook events locally, I started a new project using stripe and when i run
stripe listen --forward-to=localhost:3000/api --project-name=my_project
the cli does'nt detect any creds so it promps me to run this commandstripe login --project-name=my_project.
That command then directs me to the stripe config page. I choose the correct project, it routes me back to the cli. All good so far. The issue is that when i runstripe listen --forward-to=localhost:3000/api --project-name=my_project
it starts but with the same webhook used with my old project. I have greped through my entire computer looking for any reference to this secret but i have not found any. I have also removed the stripe cli and reinstalled it.Expected Behavior
After running
stripe login --project-name=new_project
, running thestripe listen
command fornew_project
should use the webhook secret associated withnew_project
, notold_project
.Steps to reproduce
Install Stripe CLI: If the Stripe CLI is not already installed.
Login to Old Project: Authenticate with your old Stripe project.
Follow the on-screen prompts to complete the login.
Listen to Webhooks for Old Project: Start listening to webhooks on your old project.
Note down the webhook secret that is displayed in the CLI.
log into the New Project: Authenticate with your new Stripe project.
Follow the on-screen prompts to complete the login.
Listen to Webhooks for New Project: Now start listening to webhooks on your new project.
Compare the two webhook secrets. They should be different. But they are not :(
Traceback
No error thrown
Environment
MAC
The text was updated successfully, but these errors were encountered: