gocardless / cli-releases

Release repo for the gocardless cli
Apache License 2.0
4 stars 3 forks source link

Not able to use with Valet #21

Open craigrileyuk opened 1 year ago

craigrileyuk commented 1 year ago

Is your feature request related to a problem? Please describe. When using gc listen, the webhooks are forwarded using 'dial tcp' lookup for the hostname. This seems to bypass the DNS routing that Laravel Valet sets up and results in a "no such host" error.

# Example
gc listen -f "http://localvaletsite.test/admin/webhooks/gateway/go-cardless"
# Result
2023/05/22 07:36:00 Error: Post "http://localvaletsite.test/admin/webhooks/gateway/go-cardless": dial tcp: lookup localvaletsite.test on 8.8.8.8:53: no such host

I've tried just forwarding to a php artisan serve endpoint as well, but that doesn't seem to resolve either.