#taylan - Webhook timeout

1 messages · Page 1 of 1 (latest)

frosty geyser
#

Hi 👋
Can you describe what you are trying to do with your webhooks?

slow grove
#

Well A php scripts runs and at the end of the code I have status 200

frosty geyser
#

Apparently your PHP script is taking too long and you need to return a 200 response faster.

slow grove
#

fastcgi_finish_request(); //this returns 200 to the user, and processing continues

#

are you familiar with php?

frosty geyser
#

A little but the problem isn't php, it's the time it takes for your function to return a response. That is what you need to address.

slow grove
#

well let me explain more and why I need it

#

I fetch data out of stripe and pass it to an application where internal users can interact with it. So I don't trust the data that is there and I reevaluate the payment history

#

anyway thank you for your help this fastcgi_finish_request function makes everything perfect now I can return status 200 and continue with the process

frosty geyser
#

Okay you need to return a 200 pretty quickly after verifying the Stripe signature.