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.

[Question]Exception : com.microsoft.playwright.PlaywrightException: Failed to read message from driver, pipe closed. Skipping browsers download because `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` env variable is set.

See original GitHub issue

Hi Team,

Getting the below exception .

com.microsoft.playwright.PlaywrightException: Failed to read message from driver, pipe closed. Skipping browsers download because PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD env variable is set. i’m running the test in playwright docker img via jenkins.

Playwright version:1.14.1 JDK : 1.8.0_275 Maven: 3.6.3 Chromium : 86.0.4240.111

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
agaramudhalacommented, Oct 1, 2021

lemme try to recreate the project for sharing since i couldn’t share the existing one as is due to organisation restrictions

0reactions
kb33gitcommented, Jun 14, 2022

I am getting exact same issue, because of organization policies we are not allowed to download any external jars/software hence I added PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 to User environment variable and trying to use installed browser binaries. I am not using any docker, jenkins etc. its simple maven project with playwright dependency and one line of code “Playwright play = Playwright.create();” stack trace as below

I:\ds\tools\jdk8\1.8.0_321\bin\java.exe … Skipping browsers download because "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD eny variable is set Exception in thread “main” com.microsoft.playwright.PlaywrightException : Failed to read message from driver, pipe closed. at com.microsoft.playwright.impl.Pipe Transport.poll(Pipe Transport.java:75) at com.microsoft.playwright.impl.Connection.processone Message (Connection.java:202), at com.microsoft.playwright.impl.ChannelOwner.rununtil(ChannelOwner.java:101) at com.microsoft.playwright.impl.Connection.sendMessage(Connection.java:115) at com.microsoft.playwright.impl.ChannelOwner.sendMessage(ChannelOwner.java:94) at com.microsoft.playwright.impl.Connections Root.initialize(Connection.java:82) at com.microsoft.playwright.impl.Connection.initializePlaywright(Connection.java:183) at com.microsoft.playwright.impl.PlaywrightImpl.create(PlaywrightImpl.java:45) at com.microsoft.playwright.Playwright.create(Playwright.java:92) at com.microsoft.playwright.Playwright.create(Playwright.java:96) at com.jpmorgan.projectplaywright.PlaywrightTest.main(PlaywrightTest.java:7) Caused by: java.io.EOFException at com.microsoft.playwright.impl. ReaderThread.readIntLE(Pipe Transport.java:110) at com.microsoft.playwright.impl. ReaderThread.readMessage(Pipe Transport.java:139) at com.microsoft.playwright.impl. ReaderThread.run(Pipe Transport.java:125) Process finished with exit code 1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright: “Failed to launch Browsers” — how to solve?
I recommend skipping the default Browser downloads since you already have them available. This improves the speed of the installation and CI.
Read more >
puppeteer not able to install: ERROR: Failed to set up ...
Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download - Stack Overflow ...
Read more >
Environment.SetEnvironmentVariable Method (System)
Creates, modifies, or deletes an environment variable stored in the current process or in the Windows operating system registry key reserved for the...
Read more >
Environment Variables - The Mesa 3D Graphics Library
Normally, no environment variables need to be set. Most of the environment variables used by Mesa/Gallium are for debugging purposes, but they can...
Read more >
introduce `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD ...
feat: introduce `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` env variable (#1892. An error occurred. ) ... set to non-empty value to skip browser downloads altogether.
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