#conniehunt
1 messages · Page 1 of 1 (latest)
HI
According to the error, you are making calls to Stripe API without secret key, you need to make sure that you are providing one during the calls. Check your env variables are well set.
env variables are set correctly i am able to log them
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Are you facing this issue in all your environments (even your locale env ?)
There is no requests showing in the log relating to this issue.
If i add Authorization: Bearer YOUR_SECRET_KEY' to my header it causes my app to crash. I am unable to test in prod environment as cannot deploy
Are you getting this error in your local without using env vars ?
there must be an issue with your env variables.
No, i get the error from vercel when deploying.
do i need to be using the loadStripe somewhere in my app?
So there you have an issue with your env vars.. and your not reading the secret key correctly.
You need to debug that flow and make sure that the env vars (your Stripe Secret key is set)