Does not open URL when launched from WSLv2
See original GitHub issueProvide the steps to reproduce
- Run LH on google.com
What is the current behavior?
Chrome opens to about:blank
What is the expected behavior?
Chrome opens to google.com
Environment Information
- Affected Channels: Node
- Lighthouse version: 6.0.0-beta.0
- Chrome version: 84.0.4120.0 (Official Build) canary (64-bit) (cohort: Clang-64)
- Node.js version: v13.13.0
- Operating System: Windows 10 2004 with WSLv2
Related issues
Lighthouse is installed inside of WSL, if I then run it from zsh/bash, it opens a blank Chrome video instead of the URL I passed
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Local sites running in WSL2 not accessible in browser #5298
When starting a site/app locally on my computer in WSL 2 ( Ubuntu 20.04 LTS (GNU/Linux 4.19.84-microsoft-standard x86_64)), the browser won't ...
Read more >Open browser in host system from Windows Subsystem for ...
Should be "/bin/host_chrome" . However the browser opens, but it does not open the URL in question. Just the blank start page. –...
Read more >WSL (Ubuntu): how to open localhost in browser from bash ...
You can invoke the Windows command line from Bash and use Windows file association to open URL with the default Windows browser.
Read more >Web development with Python on Windows
A step-by-step guide to get started using Python for web development on Windows, including set up for frameworks like Flask and Django.
Read more >Developing in WSL - Visual Studio Code
Developing in WSL. The Visual Studio Code WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yup, pretty much.
This is as far as it gets.
Hm, seems like there are intermittent WSL issues with localhost binding https://github.com/microsoft/WSL/issues/4636 maybe try some of the remediation techniques there?
Seemed to have some success for folks.
cc @wardpeet do you use WSL and do you remember encountering anything like this?