#acffaria91 - webhook 502
1 messages · Page 1 of 1 (latest)
Hello, where exactly are you getting a 502 error? Do you have an event ID (evt_123) that is related to this 502?
I get the error at the stage app.post('/create-checkout-session', async (req, res) => {
My webhook issues all have error 400 Bad Request
Have you stepped through your create-checkout-session code to see what is throwing an error?
400 bad request can be a lot of things. Have you checked your logs to see if your server is getting these events or if the failure happens before your code can react to them?
For the checkout the information I get is that StripeCheckout is not defined - but I didn't change anything in the code and it was working normally before
I'll check the logs
My logs are ok 😟 I'm new to stripe so I'm very confused by this
webhook
"StripeCheckout is not defined" sounds like your system can't find some Stripe-related when trying to run your code
Which of our libraries are you using?
I'm using Node
It looks like StripeCheckout isn't a class in our stripe-node library so it sounds like something about importing your custom code broke
Unfortunately I don't really know why, but it sounds like you should focus on the code that imports and uses whatever StripeCheckout is in your code
Ok, but from you part nothing changed recently right? My main issue is way it stopped working all of a sudden
*your
No not really, and if we did you would still have to have upgraded the library version yourself and whatnot. If you did, it might be helpful to revert the library version and see if that helps.To me this still seems like it is entirely contained to the code on your server and we wouldn't/couldn't push code changes there.
ok, thank you! I'll dig deeper in the code! Thanks for your help