Skip to content

[BUG] Google Cloud Function error (deploy) #2321

@MaiaVinicius

Description

@MaiaVinicius

Context:

  • Operating System: Linux
  • Node version: Node.js 10
  • Browser: Webkit
  • Extra: [any specific details about your environment]

Code Snippet

const {chromium, webkit, firefox} = require('playwright');

(async () => {
      const browser = await webkit.launch({ headless: true });
      const context = await browser.newContext();
      const page = await context.newPage();
})();

Describe the bug

I'm trying to deploy my playwright application in Google Cloud Functions. It seems like there is a problem to spawn the browser.

Error: function terminated. Recommended action: inspect logs for termination reason. Details:
Failed to launch browser: Error: spawn /root/.cache/ms-playwright/chromium-764964/chrome-linux/chrome ENOENT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions