#2clutch-webhook-500

1 messages · Page 1 of 1 (latest)

ember elbow
#

Hello! Step one would be to read the error log on your server for your code

#

something must be crashing/raising exceptions

remote cargo
#

I'm not getting anything.

#

In python, what would the way to return actual stripe response? we're currently returning our own custom response.

ember elbow
#

we don't really care about the response beyond the status code

toxic cedar
#

Hi @remote cargo I'm taking over this thread.

remote cargo
#

Okay.

#

so when i'm testing my implementation with the cli everything works fine.

#

when i do from the front-end, I run into issues.

#

is that normal?

toxic cedar
#

Since you encountered 500 errors in the webhook implementation. I'd suggest you to check your backend log instead of frontend.

remote cargo
#

so should put my entire logic in a try and catch?

#

or do i catch the failed events. unless you're recommending I log everything?

toxic cedar
#

I'd suggest you to check your backend log and see what causes the 500 errors.

remote cargo
#

ok so apparently my endpoint secret changed. i'm about to update the value is our back-end.

#

is there any reason for that to happen?

toxic cedar
#

The webhook secret generated by CLI is different from the one in Dashboard.

remote cargo
#

yeah, i just noticed that. i was looking at the wrong .env file.

#

and my server had the right value so that wasn't the issue.