GuzzleHttp\Exception\ConnectException
cURL error 6: Could not resolve: ebdaa-dev-master.test (Domain name not found) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I am calling the same pdf route which is the get request. I am on Valet. Please assist in how could I solve this?
I had same issue and follow the steps you mentioned !
On my local machine restarting dnsmasq output is
Stopping `dnsmasq`... (might take a while)
==> Successfully stopped `dnsmasq` (label: homebrew.mxcl.dnsmasq)
Warning: Taking root:admin ownership of some dnsmasq paths:
/usr/local/Cellar/dnsmasq/2.79/sbin
/usr/local/Cellar/dnsmasq/2.79/sbin/dnsmasq
/usr/local/opt/dnsmasq
/usr/local/var/homebrew/linked/dnsmasq
This will require manual removal of these paths using `sudo rm` on
brew upgrade/reinstall/uninstall.
==> Successfully started `dnsmasq` (label: homebrew.mxcl.dnsmasq)
Name Status User Plist
dnsmasq started root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mariadb started fabrique /Users/fabrique/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
[email protected] started fabrique /Users/fabrique/Library/LaunchAgents/[email protected]
nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php started root /Library/LaunchDaemons/homebrew.mxcl.php.plist
redis stopped
and log is showing
May 20 15:33:16 dnsmasq[6813]: started, version 2.79 cachesize 150
May 20 15:33:16 dnsmasq[6813]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset auth no-DNSSEC loop-detect no-inotify
May 20 15:33:16 dnsmasq[6813]: setting --bind-interfaces option because of OS limitations
May 20 15:33:16 dnsmasq[6813]: reading /etc/resolv.conf
May 20 15:33:16 dnsmasq[6813]: using nameserver 89.2.0.1#53
May 20 15:33:16 dnsmasq[6813]: using nameserver 89.2.0.2#53
May 20 15:33:16 dnsmasq[6813]: read /etc/hosts - 3 addresses
Having this same problem. I was able to solve by adding my api test address to /etc/hosts
127.0.0.1 myapicode.test
Feels really ugly to have to do this though. Also, if you use Valet secure, that won't work either. I'm trying with the Laravel Http client (Guzzle wrapper) and it complains if I have SSL turned on in Valet. Kinda wish these played nice together. I'm still digging to see if there's a better answer.
I decided to open an issue with the Valet team if anyone wants to follow...
@eddy1992 maybe you can try adding ur localhost 127.0.0.1 to your dns in system preferences network advanced dns add a new record, if after that you are not able to reach the internet, then you need to change the order of dns I think