DEV Community

Discussion on: Running headless Chromium in Azure Functions with Puppeteer and Playwright

Collapse
 
ronkot profile image
Jaakko Juvonen • Edited

Hi,

Thank you for a very helpful article! With your help I've been almost able to make playwright to work on linux consumption plan. The problem that still exists seems to be that the function does not have access to start the browser process:

Error: browserType.launch: Failed to launch: Error: spawn /home/site/wwwroot/node_modules/playwright-chromium/.local-browsers/chromium-907428/chrome-linux/chrome EACCES)

Googling shows that this problem might arise only when deploying through azure devops pipeline, which I'm doing.

Do you or anyone else have any ideas on what could be the solution for this problem?

Thousand thanks! 🙇‍♂️

Collapse
 
akhilkrishna11 profile image
Akhil krishna

Hi @ronkot , Did you get any solution for this? Please help me out. I am also facing this issue. Please have a look on the below error.

An unexpected error : { browserType.launch: Failed to launch: Error: spawn /home/site/wwwroot/node_modules/playwright-core/.local-browsers/chromium-930007/chrome-linux/chrome EACCES

Collapse
 
ronkot profile image
Jaakko Juvonen • Edited

Unfortunately I couldn't fix the issue. Finally I just gave up using playwright. I'd liked to use Playwright to print html page to pdf, but I refactored my system to use a distinct js-only mechanism to generate PDFs using pdfmake.