#acffaria91 - webhook 502

1 messages · Page 1 of 1 (latest)

west whale
#

Hello, where exactly are you getting a 502 error? Do you have an event ID (evt_123) that is related to this 502?

serene flare
#

I get the error at the stage app.post('/create-checkout-session', async (req, res) => {

#

My webhook issues all have error 400 Bad Request

west whale
#

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?

serene flare
#

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

west whale
#

"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?

serene flare
#

I'm using Node

west whale
#

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

serene flare
#

Ok, but from you part nothing changed recently right? My main issue is way it stopped working all of a sudden

#

*your

west whale
#

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.

serene flare
#

ok, thank you! I'll dig deeper in the code! Thanks for your help