#Peta Stewart

1 messages · Page 1 of 1 (latest)

silk smeltBOT
zenith depot
sour totem
#

Thank you : )

zenith depot
#

Sure thing!

sour totem
#

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.

zenith depot
#

You disable it from the same menu

sour totem
#

Yes, they are IPs I added.

zenith depot
#

What is the error that is being shown in the webhooks view of the Dashboard?

sour totem
#

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.

vocal mason
#

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

sour totem
#

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

vocal mason
#

Where exactly are you seeing that error?

sour totem
#

On the Stripe dashboard /developer/webhooks

vocal mason
#

Can you share an example event id, eg evt_123

sour totem
#

evt_3LzlgRBFC3GaqNCZ1lvIiVzI

vocal mason
#

It appears that we're not able to reach your endpoint, and your server is returning a 404 error

sour totem
#

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

ripe frost
#

Are you seeing logs from the request on your server's side?

sour totem
#

evt_3Lzmx2BFC3GaqNCZ1Sc0nmIc

#

No. How would I do that?

ripe frost
#

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

sour totem
#

Ok I will go and do some more testing. It's probably something simple. Thank you all for your time.

ripe frost
#

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

sour totem
#

Ok. Back at it tomorrow. Will do.