Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

New to docker - "Timed out after 30000 ms while trying to connect to Chrome" #24

Closed
tobeorla opened this issue Aug 28, 2018 · 3 comments

Comments

@tobeorla
Copy link

tobeorla commented Aug 28, 2018

O.S: Windows 10
Version: latest
Code:

        const puppeteer = require('puppeteer');
        const browser = await puppeteer.launch({
            args: [
                '--no-sandbox',
                '--disable-setuid-sandbox',
                '--disable-dev-shm-usage'
            ]
        });
        const page = await browser.newPage();

Command: docker run --rm -v ~/app/:/app/ buildkite/puppeteer:latest node /app/index.js
Error:

(node:1) UnhandledPromiseRejectionWarning: TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r579032

I don't know if i'm running it propely as i'm new to docker :(

@toolmantim
Copy link
Contributor

Hi @tobeorla! Sorry you're having troubles with the timeout error, and thanks for the great error report.

I gave the latest version a quick test here, on a Mac using Docker for Mac, and didn't hit that problem:
https://gist.github.com/toolmantim/6d5be00f2164cf9ec1d0d8aa592bb063

I don't have the capacity to debug a Windows machine myself I'm sorry. Can you try running with -e DEBUG="puppeteer:*" and see what the debug log lines show.

@tobeorla
Copy link
Author

I ended up switching to native puppeteer for windows so i don't need docker :)

@toolmantim
Copy link
Contributor

No worries @tobeorla — sounds like a more reliable solution for now anyhow!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants