#mathan16

1 messages · Page 1 of 1 (latest)

chrome shaleBOT
summer garden
#

Do you have any details about how it's failling? Do you see any errors anywhere?

fervent sage
#

I am getting timed out error on stripe dashboard

summer garden
#

Are you responding to the stripe webhook immediately after receiving it? You're not doing any heavy operations (like db updates, etc)?

fervent sage
#

I have a log on my script. However it doesn't log whenever a webhook is sent. It logs when I visit the webhook directly from browser with unable to extract timestamp and signature from header error

#

I have removed all other operations including database update from the script but still it doesn't work

#

This is my webhook

summer garden
#

Do you also have an example event ID I can take a look at?

fervent sage
#

evt_3O4jOaK1Is9kS6xG1hjPk3Y0

summer garden
#

Do you have any other logs on your server that may be telling your what's going on? Did you make any other changes to your integration at all?

fervent sage
#

I have checked all logs on the server, nothing has been changed

#

Especially since the past 1 week when the webhook started working again

#

I am only getting webhook signature verification failed, unable to extract timestamp and signatures from the log that i have whenever i click the webhook link i have sent you

#

Apart from that nothing, it's as if stripe is not sending any webhook to my server

#

Even though the url, signing secret and key all are correct as I am unable to see any logs whenever a webhook is sent from stripe

summer garden
#

Have you talked to your hosting provider to make sure nothing may be going wrong on that end?

#

As far as I can tell we're not having trouble reaching your server, but it doesn't hurt to check with them

fervent sage
#

I have checked with them multiple times, they have no idea about stripe at all

#

They did however assisted me in updating the php and etc but that's the best they can do

#

I have even created multiple tickets but all points to nothing

summer garden
#

Hmmm... they weren't able to confirm at all whether anything would be preventing Stripe from hitting your server?

#

Let's try and take a different approach then - are you able to spin up a fresh webhook endpoint in test mode and see if that works fine with your livemode webhook URL?

fervent sage
#

It's still failing with timed out error with test mode

chrome shaleBOT
summer garden
#

Andyou're not getting any logs at all that confirm that the event is actually reaching your server?

fervent sage
#

Nothing from the logs, if you don't mind, can you take a look at my webhook code

sleek cedar
#

Hello! I'm taking over and catching up...

#

From what I can tell this is a connectivity issue, not a code issue.

#

It seems like we are sometimes unable to reach your server, like it's going offline sometimes, or we can't route traffic to it.

fervent sage
#

Any idea on how to diagnose as the hosting company doesn't seem to help

sleek cedar
#

Let me see if I can spot any trends by looking at historical connectivity over time...

fervent sage
#

How about the log i am getting 'webhook signature verification failed - unable to extract timestamp and signatures '

sleek cedar
#

How many of those have you had?

fervent sage
#

I get it whenever i refresh the webhook link from my browser

sleek cedar
#

That makes sense, your browser isn't sending the timestamp or signatures the code is looking for.

#

Only the requests from Stripe will include that information.

fervent sage
#

If like that, then I am not getting any webhooks from stripe then

sleek cedar
#

Looking at the last 7 days it looks like there were two outages where we couldn't reach your server. One started on Oct 27th at about 10:00 AM UTC and lasted until Oct 29th at around 4:00 AM UTC. The second started on Nov 2nd at about 10:00 AM UTC and only ended very recently, or could possibly still be ongoing, although I just ran a test and was able to connect.

#

The fact that both outage windows started at roughly the same time makes me think this might be due to some kind of scheduled maintenance or something like that.

fervent sage
#

The hosting provider has denied any maintenance ongoing. Even though you're able to connect, the webhooks are still failing though. It's ok, I will create another ticket to the hosting provider again

sleek cedar
#

Maybe if you give them those dates and times they'll be able to figure out what's causing the issue.

fervent sage
#

Ok sure, thank you so much for your help

sleek cedar
#

Looking back further there were some other outages that didn't start at 10:00 AM, but it does seem like there is something intermittently going on.

#

Here's a graph of the timeouts we're seeing to your endpoint over the last 30 days:

#

Most of the time it's fine, but there are these windows where we can't connect for some reason.

fervent sage
#

Sure, thanks for your help. I will forward everything to them