#Priyanka

1 messages · Page 1 of 1 (latest)

dawn mangoBOT
true heath
#

hi! first place to look is the logs of your own server and see what it's logging when Stripe sends requests to it.

warped solar
#

My server logs are logging just as unauthorized and nothing else.

true heath
#

presumably then you have enabled some sort of security setting on your server that is blocking access(the URL that you receive webhooks on needs to be public since it's going to be hit over the public internet from Stripe's servers)

warped solar
#

Can it be a problem of api keys? Like keys are changed or expired maybe?

true heath
#

I'm not sure, seems unlikely. It depends where that 'unauthorized' message comes from.

#

again, a webhook is Stripe sending you a HTTP request. If your server now requires a password or cookies or you changed something else, and now we can't make that request to you, 'unauthorized' might be what your server logs when the password/cookie is not sent.

warped solar
#

When I try to resend the request that were successful some days back, they are also giving unauthorized error now

true heath
#

do you have an example event ID evt_xxx I could look at?

warped solar
#

How can I test webhook events from my side? I want to hit the endpoint and see myself if it give me any error

#

Sure

#

Just a second

#

I will give you event id

warped solar
#

evt_1MazvPFDlhF015OLuRDOMfnN

#

This is the event I have that is failing

true heath
#

thanks! unfortunately there's nothing I can say from that, we are trying to send it your server and your server is returning a 401, hence why the first step is to look into your server logs to see why it's doing that