#portfeila_error
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1402805032117735486
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! What's the line of code where you are getting this error?
i dont think there is line for this error
i looked it up and in stripe site says 500 error code is rare
i refreshed it and now the error code is on 77 line
that line of code is not a Stripe method. can you check your backend server that is processing that fetch request to see which specific line of code is resulting in a 500 status code being returned
Stripe checkout session error: StripeAuthenticationError: You did not provide an API key. You need to provide your API key in the Authorization header, using
Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.
at res.toJSON.then.StripeAPIError.message (file:///C:/Users/Denis/Desktop/MVP/project1/node_modules/stripe/esm/RequestSender.js:93:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'StripeAuthenticationError',
raw: {
message: "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.",
type: 'invalid_request_error',
headers: {
server: 'nginx',
date: 'Wed, 06 Aug 2025 23:09:16 GMT',
'content-type': 'application/json',
'content-length': '342',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET, HEAD, PUT, PATCH, POST, DELETE',
'access-control-allow-origin': '',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'content-security-policy': "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=EHHOymGFabtQ87R-HniVk4DWoV707dWWMj8LSLiwcD6C3jQQVxskCFQ3iVMfpNZanU7V-0sxrGfQ-k5u",
vary: 'Origin',
'www-authenticate': 'Basic realm="Stripe"',
'x-robots-tag': 'none',
'x-wc': 'ABHIJ',
'strict-transport-security': 'max-age=63072000; includeSubDomains; preload'
},
statusCode: 401,
requestId: undefined
},
rawType: 'invalid_request_error',
code: undefined,
doc_url: undefined,
param: undefined,
detail: undefined,
headers: {
server: 'nginx',
date: 'Wed, 06 Aug 2025 23:09:16 GMT',
'content-type': 'application/json',
'content-length': '342',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET, HEAD, PUT, PATCH, POST, DELETE',
'access-control-allow-origin': '',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'content-security-policy': "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=EHHOymGFabtQ87R-HniVk4DWoV707dWWMj8LSLiwcD6C3jQQVxskCFQ3iVMfpNZanU7V-0sxrGfQ-k5u",
vary: 'Origin',
'www-authenticate': 'Basic realm="Stripe"',
'x-robots-tag': 'none',
'x-wc': 'ABHIJ',
'strict-transport-security': 'max-age=63072000; includeSubDomains; preload'
},
requestId: undefined,
statusCode: 401,
charge: undefined,
decline_code: undefined,
payment_intent: undefined,
payment_method: undefined,
payment_method_type: undefined,
setup_intent: undefined,
source: undefined
}
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what you shared isn't really related to your problem. To be clear, your frontend is making a request to your server. Your server is processing that request and you should be debugging your server to see what it's doing to return a 500 error. My guess here is that you didn't set the Stripe API key in your server for whatever it is that it's trying to do
.env every api key openai google outh etc. also stripe idk why it cant be proccesed right im gonna debug and get back to you if i fix it thanks for telling me that