Try adding 127.0.0.1 to your DNS-Server list in the network settings.
I had the same problem. When using curl my-domain.test in the terminal it worked just fine. But PHP's cURL didn't find the page. So as mentioned, adding 127.0.0.1 to your DNS-Server list should solve the problem :)
Jul 31, 2019
3
Level 8
Valet: cURL error 6: Could not resolve
Hi,
I am trying to access another project (API) via one of my projects locally. This has worked before, but now I get the following error:
cURL error 6: Could not resolve: scheduler.test (Domain name not found) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
In .env the url is http://scheduler.test/api
I am able to access the site in Safari, but I get the Guzzle error when trying to access it via the other project.
I have tried restarting Valet, but that did not work.
Any suggestions? :)
Please or to participate in this conversation.