#DavidR-api-key

1 messages ยท Page 1 of 1 (latest)

rich marlin
#

Hi ๐Ÿ‘‹ I'm not aware of anything ongoing that would trigger this error, can you provide more context on what is being done when that error is encountered?

chilly dragon
#

Hey @rich marlin , thanks for the prompt reply! Here's what I got so far: this happens when we load the js.stripe.com/v3 SDK and then make the call to create a paymentRequest object.

rich marlin
#

Do you happen to have a request ID of a failed request that we could look at?

chilly dragon
#

Let me check that.

elfin nimbus
#

๐Ÿ‘‹ stepping in for toby as they need to step away.

#

That error should be thrown due to having old keys.

#

So the first thing is to double check that you don't have legacy keys still on your account

#

If you do, you'll need to roll them to get new keys in order to use PRB

chilly dragon
#

Hey @elfin nimbus ! Ok, so the key used starts with pk_test_ Is there a chance that this key expired? The thing is, the test is passing now, so the key is accepted, but I'm wondering why this fails intermittently. It has failed before and it will probably fail again sometime.

elfin nimbus
#

Huh, no pk_test is correct

chilly dragon
#

BTW, this is the "public_key" we're talking about. There's also the "api_key"

elfin nimbus
#

Right this is a client-side error

chilly dragon
#

Yep.

elfin nimbus
#

Based on the publishable key

#

So the secret key shouldn't matter here

#

Weird that this is intermittent

#

Is this a Connect integration?

chilly dragon
#

yes it is

elfin nimbus
#

Is it intermittent with different accounts?

#

Like is the behavior specific to any account do you know?

chilly dragon
#

and this is an end to end test

elfin nimbus
#

It shouldn't really matter as you should be initializing everything from your platform....

#

So that error really doesn't make sense to me

#

Thinking....

#

So as far as you can tell this is totally intermittent

#

Was today the first time it happened?

chilly dragon
#

Let me double-check that with the rest of the devs. One moment please

#

I've just found that this key is from 2016

#

do you think refreshing this key will make a difference?

#

Looks like everyone from my team left and I don't have a concrete answer for this. I wouldn't want to hold you, so I can come back tomorrow with more information on this. I can probably get the request id for this if it's possible so you can look into it into more detail.

#

Let me know if I can do anything else on my end that would help you.

elfin nimbus
#

Yep we'll be here if you want to come back with more info

#

I would recommend rolling the key, yes.

#

The old key does seem suspect

#

Though very weird if it is intermittent

chilly dragon
#

Ok, thank you for looking into this! All the best, will come back with more info