#Peta Stewart
1 messages · Page 1 of 1 (latest)
If you click on the specific webhook from this view: https://dashboard.stripe.com/webhooks there should be an elipses (...) button you can click on the top right of the page with an option to "Enable..."
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thank you : )
Sure thing!
I can see my webhook was still not received by backend. Is there a way to cancel it from trying again
The issue is that I have set up restricted incoming sites to my backend like 'http://localhost:1234', Which is working for the sites. But I put the IP addresses for Stripe like '3.18.12.63', are not working. Are there domain addresses the webhooks are coming from? Or do I need to format the IPs differently.
You disable it from the same menu
Here are all the IPs that Stripe may use for webhooks: https://stripe.com/docs/ips#webhook-notifications
Yes, they are IPs I added.
What is the error that is being shown in the webhooks view of the Dashboard?
Invalid encoding: ISO-8859-1
The server works with mongo DB so I know it is my IP format that is wrong. I am trying no https:// before them. Will let you know how it goes.
I'm not sure if we can help with that unfortunately
This seems like an internal implementation detail of your system/network to configure those allow listed IPs
OK everything was working with webhooks with cli local testing.
The only thing I changes was to add an allow list. But I tested everything and eventually removed it and it still does not work
The message for the webhooks which have stopped is this 503 Invalid encoding: ISO-8859-1
And the message for those not yet stopped is this 404 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /</pre>
</body>
</html>
Do you know of another reason why it would stop working in a live environment?
But my DB is working fine
Where exactly are you seeing that error?
On the Stripe dashboard /developer/webhooks
Can you share an example event id, eg evt_123
evt_3LzlgRBFC3GaqNCZ1lvIiVzI
It appears that we're not able to reach your endpoint, and your server is returning a 404 error
ok I'm feeling really smart now. I forgot to add the /webhook to the url. But now I am still getting a 400 error: bad request
Are you seeing logs from the request on your server's side?
Unfortunately I don't know. That might be a question for your network administrators or hosting provider
Looking at the event looks like we don't have much info on our side. We just get the 400 bad request response from your URL but we don't have info on what errored out or why
Ok I will go and do some more testing. It's probably something simple. Thank you all for your time.
Sounds good! Debugging on your side is a good next step. Let us know if you have any more questions, especially if this ends up coming from an error an error being raised in your Stripe code or something
Ok. Back at it tomorrow. Will do.