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.

Azure Function .Net Core 3.1 - Failed to launch chromium because executable doesn't exist

See original GitHub issue

I published a simple example to Azure Function (Windows) and I got the error:

Failed to launch chromium because executable doesn’t exist at C:\local\LocalAppData\ms-playwright\chromium-833159\chrome-win\chrome.exe Try re-installing the browsers running playwright-cli.exe install in windows or playwright-cli install in MacOS or Linux. Note: pass debug: "pw:api" to LaunchAsync to capture Playwright logs.

Any idea how to fix this? Thank you!

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
avodovnikcommented, Jun 10, 2021

I don’t think it’s possible with Azure Functions. Use VM.

While we’re working on getting the scenario documented and working, you can use a docker container: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal&pivots=programming-language-csharp

as long as you have ran playwright install it should work.

But this is something we’re working on.

3reactions
danbasszeticommented, Jan 20, 2021

I’d second this. I keep getting a message complaining that it can’t find the playwright driver in the bin folder, despite it being there. I use Linux on deployed and WSL/Windows locally and get the same message everywhere, but my unit test project doesn’t seem to have a problem finding and using playwright

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Function .Net Core 3.1 - Failed to launch chromium ...
I published a simple example to Azure Function (Windows) and I got the error: Failed to launch chromium because executable doesn't exist at...
Read more >
typescript - Playwright - Can't launch Chromium when it's in ...
I made an Azure Function that uses Playwright. It works locally, well, that part doesn't change). Then I created Azure DevOps pipeline, ...
Read more >
Failed to launch chromium because executable doesn't exist
Hi, I'm trying to use Playwright in a Netlify function but I get this error on deploy (works great locally with netlify dev...
Read more >
Playwright: “Failed to launch Browsers” — how to solve?
“Error: Failed to launch chromium because executable doesn't exist”. This post explains how to solve the above issue in the CI.
Read more >
Error when trying to start an Azure function on a different ...
Hi, I'm trying to start two functions at the same time with Visual studio, it gives me an error because of the port....
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