#chengyu - webhook testing

1 messages ยท Page 1 of 1 (latest)

keen pumice
#

Hi

jaunty mortar
#

hello

keen pumice
#

I think that is because dev.localhost is not generally understood to refer to your own local machine.

jaunty mortar
#

yeah so how to fix that by updating etc resolv.conf

#

?

keen pumice
#

I start my workday by running the following:

stripe listen --forward-to localhost:8000/webhook2/ --log-level info

Because i have my test integration running on port 8000

#

I think all you need to do is just use localhost.

jaunty mortar
#

but do to a programing issue I need that dev

#

subdomain

keen pumice
#

That server is running on your local machine?

jaunty mortar
#

yes

keen pumice
#

And you can reach it by typing dev.localhost into your browser?

jaunty mortar
#

yes

keen pumice
#

Hmmmm... ๐Ÿค”

jaunty mortar
#

here is a proof subdomain can be reach by browser

keen pumice
#

Because you are using a subdomain, have you tried adding the http:// prefix?

#

e.g stripe listen --forward-to http://dev.localhost:5000/v6/stripe/webhooks/

jaunty mortar
#

the thing I can see is even browser understand I can not ping dev.localhost

keen pumice
#

Unfortunately I'm not sure what's going on here. Could you try running a simple server directly on localhost to see if the dev. is really the issue? I'll reach out to my colleagues to see if anyone has experienced this before.

jaunty mortar
#

I got it working

#

need to update etc to tell machine what is dev.localhost

keen pumice
#

Ok cool! If you don't mind sharing, what did you update?

jaunty mortar
#

somehow browser is clever enough to handle how every there are some command line tool still relay on etc

#

I am on mac so I have updated /etc/hosts

keen pumice
#

Very.nice!

jaunty mortar
keen pumice
#

๐Ÿ‘

jaunty mortar
#

I think for linux it is /etc/resolv.conf

keen pumice
#

I'll have to test that out. I run linux on my personal computer.

jaunty mortar
#

๐Ÿ‘ I have used archlinux for 3 years, eventually I throwed that PC and bought a MAC ๐Ÿ˜‚