#monshery-cli

1 messages · Page 1 of 1 (latest)

final flower
#

Hey, is there a specific error or behaviour you're seeing?

#

'Acting weird' is a bit veague

mental sage
#

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

final flower
#

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

mental sage
#

Yea but thats why i logged in

#

I did

#

i re logged in

final flower
#

I'd recommend removing the config file where all the project/auth details are stored

mental sage
#

Ynnoj i dont know which files to remove

#

as for the interactive flag

final flower
mental sage
#

I am not on windows

#

i am on ubuntu

#

The interactive login requires an api key

#

where do i find that ?

final flower
mental sage
#

this didnt help much

#

Enter your API key:

#

Which of the keys do i give it

#

The publishable key ?

#

the secret key ?

final flower
#

Your secret key (or a restricted key)

mental sage
#

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

final flower
mental sage
#

Well i am logged in to the account owner account

#

the main account

#

if this isnt enough there's a bigger problem

final flower
#

Ah, you just need to deselect the Treasury read/write permissions for the key

#

I misread the error

mental sage
#

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
final flower
#

You can just use the secret key

mental sage
#

I dont want to use my main secret key

#

I want to create a duplicate of one of the previously created key

final flower
#

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

mental sage
#

... nevermind i found out a way to do it.

#

for future reference

#

this is not the secret key

#

You can just use the secret key
this was wrong

#

the stripe login -i

#

Enter your API key:

#

Simply use the token given from trying to login

final flower
#

I meant the account secret key

#

But, glad its sorted!