#monshery-cli
1 messages · Page 1 of 1 (latest)
Hey, is there a specific error or behaviour you're seeing?
'Acting weird' is a bit veague
true
Just a sec
i want to fist ugrade CLI to latest version again
Ok
so i am running CLI listner
and i get
⣻ Getting ready... [Thu, 03 Mar 2022 02:55:38 PST] FATAL Error while authenticating with Stripe: Authorization failed, status=401, body={
"error": {
"code": "api_key_expired",
"doc_url": "https://stripe.com/docs/error-codes/api-key-expired",
"message": "Expired API Key provided: rk_test_*********************************************************************************************xFetIS",
"type": "invalid_request_error"
}
}
I tried to relog
which didnt help
i updated to latest version - didnt help
I guess you previously authenticated with a now expired key
The CLI generates a restricted key, which expire. You'll need to re-auth
stripe login
I'd recommend removing the config file where all the project/auth details are stored
Alternatively use the --interactive flag with login and explicitly provide an API key: https://stripe.com/docs/cli/login#login-interactive
Yeah, I'm not sure either on Windows
I am not on windows
i am on ubuntu
The interactive login requires an api key
where do i find that ?
In your Dashboard: https://stripe.com/docs/keys
this didnt help much
Enter your API key:
Which of the keys do i give it
The publishable key ?
the secret key ?
Your secret key (or a restricted key)
I am trying to duplicate one of my older keys
I am getting
You do not have access to create restricted keys for Treasury beta resources.
I am logged in as account admin
Are you sure? https://stripe.com/docs/dashboard/teams/roles
Give team members controlled access to your Stripe account.
Well i am logged in to the account owner account
the main account
if this isnt enough there's a bigger problem
Ah, you just need to deselect the Treasury read/write permissions for the key
I misread the error
Checking
I didnt see treasurey
Cant find it in the list
All core resources
View documentation
Apple Pay Domains
Balance
Balance transaction sources
Charges
Customers
Disputes
Events
Files
PaymentIntents
PaymentMethods
Payouts
Products
Shipping Rates
SetupIntents
Sources
Tokens
All Checkout resources
View documentation
Checkout Sessions
All Billing resources
View documentation
Coupons
Credit notes
Customer portal
Invoices
Prices
Subscriptions
Quote
Tax Rates
Usage Records
All Connect resources
View documentation
Application Fees
Login Links
Account Links
Top-ups
Transfers
All Orders resources
View documentation
Orders
SKUs
All Issuing resources
View documentation
Authorizations
Cardholders
Cards
Disputes
Transactions
All Reporting resources
View documentation
Report Runs and Report Types
All webhook resources
View documentation
Webhook Endpoints
Stripe CLI permissions
Debugging tools
All Payment Links resources
View documentation
Payment Links
You can just use the secret key
I dont want to use my main secret key
I want to create a duplicate of one of the previously created key
Let's try this: stripe config --list
My guess is the old, expired keys are persisted there
So you can update them manually use the commands at that URL