Puppeteer fails in docker container: "browser has disconnected!" Puppeteer fails in docker container: "browser has disconnected!" docker docker

Puppeteer fails in docker container: "browser has disconnected!"


This is the same problem that affects this answer.

Basically puppeteer 1.12.2 installs a development version 73 of chromium , which has some small bugs that stops it from loading certain website/script and/or stop it from running on specific platform.

The solution is either use an previous puppeteer version 1.11.0, or use a different stable chrome version.

Which is why executablePath: 'google-chrome' made the difference. It was using a stable version rather than the provided version.