#passweb_55757

1 messages ยท Page 1 of 1 (latest)

woven stumpBOT
gray python
#

Hi there!

#

Which API call are you trying to make?

#

And can you share the exact error you get?

rose jasper
#

yes

#

{
"error": {
"message": "Invalid API Key provided: sk****************************************************************************************************3kyf",
"type": "invalid_request_error"
}
}

#

i have this error with all api call

gray python
#

Well the error is pretty clearn, you are using the wrong API key.
To solve this, I recommend:

  1. Visit your dashboard here: https://dashboard.stripe.com/test/apikeys
  2. copy your TEST API key (sk_test_xxx)
  3. And use that in your API call
rose jasper
#

I am the developer of a CMS and at the moment I don't have my client's test key at hand, but I had already tried and received the same error

#

I have several dozen customers and everything works for them, he is the only customer who has this problem

gray python
#

Can you try with curl instead of Postman?

rose jasper
#

just a moment

gray python
#

Something like this, jsut to test:

curl https://api.stripe.com/v1/customers \
  -u sk_test_xxxx: \
  --data-urlencode description="My First Test Customer"
rose jasper
#

i don't use curl usually

#

i have to install it

gray python
#

It's not installed by default on your machine?

rose jasper
#

no

#

ok i have curl

#

but doesn't work

gray python
#

What's the error?

rose jasper
#

i have syntax error in the request

gray python
#

Can you copy-paste the code I shared above, and only replace the xxxx part?

#

This code please:

curl https://api.stripe.com/v1/customers \
  -u sk_test_xxxx: \
  --data-urlencode description="My First Test Customer"
rose jasper
#

with my api key live

gray python
#

If you don't have the test api key, then yes

rose jasper
gray python
#

Sorry can you try again like this:

curl https://api.stripe.com/v1/customers \
   -u sk_test_xxxx: \
   -d description="My First Test Customer"
rose jasper
woven stumpBOT
hushed shell
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

rose jasper
#

yess

#

hello

hushed shell
#

sorry but I don't think curl is the best thing here, since you're using Windows PowerShell

rose jasper
#

and what i have to use?

#

i have never used curl

#

๐Ÿ˜…

#

i always use postman

hushed shell
#

postman should be fine

#

would you mind sharing the request ID that failed?

rose jasper
#

i don't receive Request-Id in the response Headers

hushed shell
#

please delete the screenshot

#

you've just shared your secret key on a live channel

#

you need to go now and roll your keys

rose jasper
#

ok

hushed shell
#

this is really important

rose jasper
#

i obscure it next time

hushed shell
#

once you roll the key

#

then retry

#

and see if the problem persists