#Bo0013246

1 messages ยท Page 1 of 1 (latest)

velvet nymphBOT
amber gulch
#

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.

ionic hull
#

"evt_3NY8zKIKbnQP38U1040d6oCS"

amber gulch
#

Thank you, taking a look.

ionic hull
#

So I have the listener set up on my local machine

#

and maybe I have the wrong endpoints?

amber gulch
#

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.

ionic hull
#

what should I change to make this work on my local machine?

#

as I dont have an endpoint in my local machine

amber gulch
#

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

ionic hull
#

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

amber gulch
#

I don't understand what you're trying to ask. What error on your local machine are you referring to?

ionic hull
amber gulch
#

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.

ionic hull
#

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

amber gulch
#

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.

ionic hull
#

ok thnaks