Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "WebSocket error: connect ETIMEDOUT 127.0.0.1:53052" error when attempting to run tests with the vscode extension #30496

Closed
DetachHead opened this issue Apr 24, 2024 · 4 comments

Comments

@DetachHead
Copy link
Contributor

Version

1.43.1

Steps to reproduce

  1. run npm init playwright@1.43.1
  2. run code .
  3. install the Playwright Test for VSCode extension
  4. click Help > Toggle Developer Tools, then open the console
  5. in the test explorer, click debug on one of the tests

Expected behavior

test runs

Actual behavior

the test hangs forever with no output in the vscode output terminal or debug console:

image
image

the following error is present in the devtools console:

[ms-playwright.playwright]WebSocket error: connect ETIMEDOUT 127.0.0.1:53052

image

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11500H @ 2.90GHz
    Memory: 7.51 GB / 31.20 GB
  Binaries:
    Node: 21.5.0 - ~\AppData\Roaming\node\node.EXE
    npm: 10.2.4 - ~\AppData\Roaming\node\npm.CMD
    bun: 1.0.35 - ~\.bun\bin\bun.EXE
  IDEs:
    VSCode: 1.88.1 - C:\Users\user\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.1.16 - C:\WINDOWS\system32\bash.EXE
  npmPackages:
    @playwright/test: ^1.43.1 => 1.43.1
@pavelfeldman
Copy link
Member

It works for me on a fresh dev box:

  System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD EPYC 7763 64-Core Processor
    Memory: 54.44 GB / 63.95 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.88.1 - C:\Program Files\Microsoft VS Code\bin\code.CMD
  npmPackages:
    @playwright/test: ^1.43.1 => 1.43.1

Could it be that you did not allow it to use the network connection?

@DetachHead
Copy link
Contributor Author

i didn't do anything like that, but it's a work PC so maybe a group policy or firewall or something is interfering with it. any advice on how i can narrow down exactly what's going on?

@pavelfeldman
Copy link
Member

Not really, being able to reproduce it would help, we have not seen this happening to other users.

@pavelfeldman
Copy link
Member

We would need exact steps to follow in order to address this. It includes the code snippet that we can run locally to demonstrate the problem. Please file a new issue if you are able to replicate this failure on another machine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants