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.

[BUG]install python -m playwright install on windows7 Python3.8.7, got this error message:(node:5848) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 13.107.24 6.13:443

See original GitHub issue

trying to install python -m playwright install on windows7 Python3.8.7, got this error message: C:\Users\10034852>python -m playwright install (node:5848) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 13.107.24 6.13:443 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) (node:5848) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termina te the node process on unhandled promise rejection, use the CLI flag --unhandle d-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejectio ns_mode). (rejection id: 1) (node:5848) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre cated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DJ-Glockcommented, Mar 31, 2021

Hey guys. I know the issue is closed, but probably it will help someone.

We faced similar issue. And the root cause was in proxy that was not set in environment variables. We have a corporate proxy that is set on system level, also it was set in yarn-config. But it looks like PW uses envrionment variables HTTP_PROXY and HTTPS_PROXY to download browser.

So once proxy variables were set - everything became fine. image

0reactions
jonathanpmartinscommented, Nov 2, 2021

Yeah, looks like azure playwright.azureedge.net is not accessible from where you are 😕

I’m having this issue now and only a VPN connection solved the problem. So, to install a NPM package I need a VPN? What is going on?

Take a look: https://github.com/microsoft/playwright/issues/5442.

npm info run playwright@1.14.1 install node_modules/playwright node install.js
npm info run playwright@1.14.1 install { code: 1, signal: null }
npm timing reify:rollback:createSparse Completed in 734ms
npm timing reify:rollback:retireShallow Completed in 0ms
npm timing command:install Completed in 397943ms
npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
npm verb stack     at ChildProcess.emit (node:events:390:28)
npm verb stack     at maybeClose (node:internal/child_process:1064:16)
npm verb stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm verb pkgid playwright@1.14.1
npm verb cwd /var/www/project
npm verb Linux 5.4.0-89-generic
npm verb argv "/usr/bin/node" "/usr/local/bin/npm" "install" "--verbose"
npm verb node v16.13.0
npm verb npm  v7.17.0
npm ERR! code 1
npm ERR! path /var/www/project/node_modules/playwright
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! /var/www/project/node_modules/playwright/lib/utils/registry.js:551
npm ERR!       throw new Error(`Failed to download ${title}, caused by\n${e.stack}`);
npm ERR!             ^
npm ERR! 
npm ERR! Error: Failed to download chromium v907428, caused by
npm ERR! Error: connect ETIMEDOUT 13.107.246.33:443
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
npm ERR!     at /var/www/project/node_modules/playwright/lib/utils/registry.js:551:13
npm ERR!     at async Registry._downloadExecutable (/var/www/project/node_modules/playwright/lib/utils/registry.js:550:5)
npm ERR!     at async Registry.install (/var/www/project/node_modules/playwright/lib/utils/registry.js:537:34)
npm ERR!     at async installDefaultBrowsersForNpmInstall (/var/www/project/node_modules/playwright/lib/utils/registry.js:663:3)
npm verb exit 1
npm timing npm Completed in 398162ms
npm verb code 1

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jonathan/.npm/_logs/2021-11-02T17_14_15_729Z-debug.log
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when installing Microsoft Playwright - python
This runs the playwright module as a script. Use python -h for more information on these flags, and python -m playwright for more ......
Read more >
playwright 1.9.0 on Node.js NPM - NewReleases.io
Playwright Inspector is a new GUI tool to author and debug your tests. Line-by-line debugging of your Playwright scripts, with play, pause and...
Read more >
Can't finish playwright installation : Forums - PythonAnywhere
Hello,. I'm trying to install playwright in a virtual environment using Python 3.8. The package downloads and installs perfectly.
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