A port of puppeteer running on Deno
Not sure what I'm doing wrong, but can't seem to get deno-puppeteer working in docker. It works fine if I run the `deno --allow-all main.js`. Error ```javascript Interrupted: operation canceled at async read (ext:deno_io/12_io.js:102:17) at async readDelim (https://deno.land/[email protected]/io/bufio.ts:652:20) at async readStringDelim (https://deno.land/[email protected]/io/bufio.ts:702:20) at async readLines (https://deno.land/[email protected]/io/bufio.ts:711:18) at async waitForWSEndpoint (https://deno.land/x/[email protected]/src/deno/BrowserRunner.ts:168:20) at async BrowserRunner.setupConnection (https://deno.land/x/[email protected]/src/deno/BrowserRunner.ts:146:31) at async ChromeLauncher.launch (https://deno.land/x/[email protected]/src/deno/Launcher.ts:114:26) at async loginToRouter (file:///app/main.js:55:19) at async maintainInternetConnectivity (file:///app/main.js:144:9) { name: "Interrupted", code: "EINTR" } ``` If I leave it running longer it'll give a timeout error. Code snippet ```javascript import puppeteer from "https://deno.land/x/[email protected]/mod.ts"; ... async function loginToRouter() { const browser = await puppeteer.launch({ headless: true, args: ["--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage"], }); } ... ``` Dockerfile ```Dockerfile FROM denoland/deno:1.39.0 WORKDIR /app USER root # have tried with an without root COPY . . RUN deno cache main.js RUN PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected]/install.ts CMD ["deno", "run", "--allow-all", "--unstable", "main.js"] # for testing only, but still doesn't work ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by crbon and has received 3 comments.