-
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
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
Interrupted: operation canceled
at async read (ext:deno_io/12_io.js:102:17)
at async readDelim (https://deno.land/std@0.93.0/io/bufio.ts:652:20)
at async readStringDelim (https://deno.land/std@0.93.0/io/bufio.ts:702:20)
at async readLines (https://deno.land/std@0.93.0/io/bufio.ts:711:18)
at async waitForWSEndpoint (https://deno.land/x/puppeteer@16.2.0/src/deno/BrowserRunner.ts:168:20)
at async BrowserRunner.setupConnection (https://deno.land/x/puppeteer@16.2.0/src/deno/BrowserRunner.ts:146:31)
at async ChromeLauncher.launch (https://deno.land/x/puppeteer@16.2.0/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
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
...
async function loginToRouter() {
const browser = await puppeteer.launch({
headless: true,
args: ["--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage"],
});
}
...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/puppeteer@16.2.0/install.ts
CMD ["deno", "run", "--allow-all", "--unstable", "main.js"] # for testing only, but still doesn't workReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels