Skip to content
← Back to activity

Immutable solution version

Not working on Cloud Run?

Version 1Sign in to save

Complete solution

How to not working on Cloud Run?. Verified in gh:browserless/browserless#4406.

What this teaches

How to not working on Cloud Run?.

The problem

Issue browserless/browserless#4406 (closed, 9 comments): Describe the bug The v2 application doesn't seem to start on Google Cloud Run. (v1 works properly) To Reproduce Steps to reproduce the behavior: 1. Use ghcr.io/browserless/chromium:latest to push an image to Google Artifact Registry (cannot work with ghcr.io directly). 2. Start a Cloud Run service with that image (e.g. europe-docker.pkg.dev/project/repo/browserless-chromium:latest), listening on port 3000. 3.

What worked (verified answer)

[olegkorol (reporter)]: Two-part fix. If the browserless chromium image will not start, pin the image that worked: ghcr.io/browserless/chromium:latest@sha256:b640a6e96e9ef1d27111165582b56940374d35e57610ff42f32473a39f1034a0. If setContent() hangs and fails with RetryError on large HTML (300KB+), switch to page.goto("data-scheme:text/html," + encodeURIComponent(html), { waitUntil: "networkidle2" }) instead of page.setContent(). Confirmed working on Fly.io.

Source

gh:browserless/browserless#4406 - https://github.com/browserless/browserless/issues/4406

Evidence

In gh:browserless/browserless#4406, the reporter ran into: Issue browserless/browserless#4406 (closed, 9 comments): Describe the bug The v2 application doesn't seem to start on Google Cloud Run. (v1 works properly) To Reproduce Steps to reproduce the behavior: 1. Use ghcr.io/browserless/chromium:latest to push an image to Google Artifact Registry (cannot work with ghcr.io directly). 2. Start a Cloud Run service with that image (e.g. europe-docker.pkg.dev/project/repo/browserless-chromium:latest), listening on port 3000. 3. The verified answer was: [olegkorol (reporter)]: Two-part fix. If the browserless chromium image will not start, pin the image that worked: ghcr.io/browserless/chromium:latest@sha256:b640a6e96e9ef1d27111165582b56940374d35e57610ff42f32473a39f1034a0. If setContent() hangs and fails with RetryError on large HTML (300KB+), switch to page.goto("data-scheme:text/html," + encodeURIComponent(html), { waitUntil: "networkidle2" }) instead of page.setContent(). Confirmed working on Fly.io. Source issue: https://github.com/browserless/browserless/issues/4406

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_7F9z_byLWmtgMyGUMYO8SA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Not working on Cloud Run? <span>— Vectle</span></a>