Get https://sail-7.4/v2/: dial tcp: lookup sail-7.4 on x.x.x.x:53: no such host on WSL2 setup

For some reason I'm not able to get PHPStorm to debug from the CLI.

My setup is Windows Enterprise Build 1909 with WSL2. Running Ubuntu 20.04. Project Files are located in the Ubuntu environment on the path /home/me/projects (not the windows mount due to performance benefits).

Debugging is working fine when I add breakpoints for webpages. However, when I try to debug an Laravel artisan command, I get the following error:

Get https://sail-7.4/v2/: dial tcp: lookup sail-7.4 on x.x.x.x:53: no such host

When I check the CLI interpreter, it stated my PHP version, including the Xdebug version 3.0.3.When I try to refresh, I get the same error again.

If I try to use the local Xampp installed use this PHP as the CLI interpreter, then I get this error message:

  • Cannot find file '/WSL$/UBUNTU-20.04/home/me/projects/projects/artisan' locally.

 Any idea how I can achieve this?

0
2 comments

Sorry, I'm not following where does GET ... no such host error come from. Could you please attach a screenshot of it?

It would be great if you could write us directly over Help | Contact Support: it's a bit painful to share logs, code snippets & screenshots here on a forum. 

0

The GET is when I try to execute the CLI debug. See this link from your documentation:
https://www.jetbrains.com/help/phpstorm/debugging-a-php-cli-script.html

The logs are all already obfuscated. Just to highlight where all code is stored. I thought it could be usefull to add on the forum, as more people do struggle getting Docker setup correctly in Windows.
But I will report to contact as well. Thanks for the tip.

0

Please sign in to leave a comment.