Menu

My Puppeteer container couldn't find Chrome, and the run charged its fee anyway πŸ”‘
πŸ“°

My Puppeteer container couldn't find Chrome, and the run charged its fee anyway πŸ”‘

DEV Community: dockerΒ·Timothy KelvinΒ·about 7 hours ago
#pPbofJwn
#devtodocker#devto#dev#puppeteer#chrome
Long article (978 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A lock file from my laptop, a base image that floats, and a fee charged one step too early.

Hi! I build small data tools that run as Apify Actors, serverless jobs that people pay for per result.

I recently shipped a new one. It opens short video pages in headless Chrome through Puppeteer, takes the audio, and turns it into a transcript. Every local test passed. The first run in the cloud lasted 4 seconds.

πŸ’₯ The error

Error: Could not find Chrome (ver. 158.0.8127.88). This can occur if either 1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or 2. your cache path is incorrectly configured (which is: /home/myuser/.cache/puppeteer).

Enter fullscreen mode

Exit fullscreen mode

The container did have Chrome in it. It just wasn't version 158.

πŸ” Why it passed on my laptop

Two things were true at once.

My laptop never used Puppeteer's own Chrome.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.