#Bo0013246
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you share the ID of an Event where you saw this behavior? I need to look at whether the timeout occurred during the connection handshake, or if it was the response timeout that was exceeded.
"evt_3NY8zKIKbnQP38U1040d6oCS"
Thank you, taking a look.
So I have the listener set up on my local machine
and maybe I have the wrong endpoints?
Yeah, looks like your endpoint is registered to have Events sent to https://someexample.co/webhooks, which doesn't seem to be a real endpoint so it doesn't respond to our requests.
Hostname resolution is failing for that address.
what should I change to make this work on my local machine?
as I dont have an endpoint in my local machine
You can't register a webhook endpoint for a local machine, the CLI is the only way to forward events to your local machine, and that approach should only be used for testing, it isn't recommended for production usage.
To forward events to your local machine you'll want to run stripe listen using the --forward-to parameter:
https://stripe.com/docs/cli/listen#listen-forward-to
ya thats what I have
so no way I can get the error resolve on my local machine
it needs a productions response of 200 not my local
plz confirm
or whatever is registered as production response
I don't understand what you're trying to ask. What error on your local machine are you referring to?
there is no error on my local machine, the error I am seeing here on dashboard https://cdn.discordapp.com/attachments/841573134531821616/1133773815470637086/Screen_Shot_2023-07-26_at_09.52.10.png
That error is because you registered an endpoint for a site that doesn't exist, so we can't communicate with it. You should probably delete that endpoint as it will never work unless you build an endpoint that is accessible at https://someexample.co/webhooks.
understood
my question is what can I do to make a webhook successful on stripe dashboard, I dont have a public endpoint, I only have my local machine, but the webhook needs a public endpoint to set it up
or maybe it is not possible without a public endpoint
The whole point of webhooks is to have an endpoint that can receive the Events we're sending. If you're just testing you can use the Stripe CLI to listen for those and pass them to a local machine, if you're preparing for production then you need to build an endpoint that is accessible via the internet.
ok thnaks