#db1900

1 messages ยท Page 1 of 1 (latest)

pine doveBOT
worldly furnace
#

Hello

spice kite
#

context: this is a production env

#

using prod live keys

worldly furnace
#

That's all a bit too vague to be able to say anything specific

#

When does this error occur?

#

What code are you trying to run?

spice kite
#

when our app calls the stripe api to create a customer or account

worldly furnace
#

Does this happen on any Stripe API request you are making?

#

Or just certain ones?

spice kite
#

any stripe requests

#

do Stripe API requests in live mode vs test mode differ ?

worldly furnace
#

No

#

How are you initializing Stripe here?

spice kite
#

we import stripe and have a stripe wrapper that gets initialized on our apps creation

worldly furnace
#

Hmm and you are sure that Stripe is returning this error that you are seeing? I don't think we have an error that states: It looks like there's probably a configuration issue locally

#

I could be wrong on that

#

But I've never seen that in one of our errors

spice kite
#

ok, but regarding the second part of it "Network error: A ValueError was raised with error message Invalid header value b'[BEARER_TOKEN_REDACTED]
'"

#

this is the actual error in our logs:

(Network error: A ValueError was raised with error message Invalid header value b'[BEARER_TOKEN_REDACTED]\n')

worldly furnace
#

Is your wrapper using bearer auth here?

spice kite
#

no, we are using the stripe api key

#

๐Ÿค”

worldly furnace
#

And you are using one of our client libraries?

spice kite
#

yeah, correct ๐Ÿ™‚

#

its the python library fwiw

worldly furnace
#

And with your test keys it works just fine?

spice kite
#

correct

worldly furnace
#

Hmmm yeah the keys here really shouldn't have anything to do with things on our side.