question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running browser: connect ECONNREFUSED 127.0.0.1:41613

See original GitHub issue

Describe the bug In wsl 2 I am unable to connect to my browser. When installing with a fresh and fresh launch.json system it works fine but after “userDataDir” was set it boots up once then after reboot I cant connect

To Reproduce Steps to reproduce the behavior:

  • Freshly installed vs-code-insiders 1.54 (Same bug with stable version)
  • Install the WSL2 extensions for vs-code when prompted
  • Create a default launch “pwa-chrome”. Make sure you running in vs-code remote WSL:ubuntu
  • Testing it works fine
  • set the “userDataDir” so that you can install vue-devtools and have it stick between reboots.
  • Reboot -Error Error running browser: connect ECONNREFUSED 127.0.0.1:41613
  • Removing userDataDir does not fix the bug
  • Restarting vs-code or creating a new launch config doesnt fix it

Log File vscode-debugadapter-57b9e7fa.json.gz

VS Code Version: 1.53.2

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
Agamennoncommented, Apr 1, 2021

I got bitten by this, @connor4312 could you please re-open? Same issue with the exception that i did not fiddle with userDataDir. my config:

{
    "name": "Launch Chrome",
    "request": "launch",
    "type": "pwa-chrome",
    "url": "http://localhost:8080",
    "webRoot": "${workspaceFolder}"
  },

i tried @mellester fix but it doesn’t work for me. re-installing vscode, wsl2, using insiders, using stable, nothing works Chrome opens for 3 seconds, then it closes on me, and i get the: Error running browser: connect ECONNREFUSED 127.0.0.1:53876 I just ran out of things to try, and i need to work 😦

0reactions
yudinocommented, Nov 13, 2021

Hello, I had the same issues as everyone here and I was on Ubuntu 20.04 for the WSL. I changed to Ubuntu 20.04.3 LTS and it worked without any problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode Chrome Debgugger Extension: Error - Stack Overflow
I had this the Chrome Debug extension working in VSCode using Attach mode but suddenly was experiencing this error.
Read more >
Client-side debugging with javascript is throwing ...
when I enable client - side debugging and try to launch my asp.net mvc 5 app the vs on either browser Edge, Chrome...
Read more >
Having some issues with Edge. Would like to ask a couple ...
Upon choosing a random windows, debugging fails with error message "Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222" Why ...
Read more >
I am returning an error after I create "const driver = new ...
Hi everyone, I am running into a problem within my node repl on MacOS where it throws back an ECONNREFUSED with the specified...
Read more >
Error: connect ECONNREFUSED 127.0.0.1:443 - Postman
I got the following error: Error: connect ECONNREFUSED 127.0.0.1:443 ... signed certificate using any installed browser (Chrome, Firefox even…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found