Skip to content

playwright regression in 2.1.5 (BadResource: Bad resource ID) #27658

@brad-jones

Description

This dockerfile builds successfully.

FROM denoland/deno:bin-2.1.4 AS deno
FROM debian:12-slim
COPY --from=deno /deno /usr/local/bin/deno
RUN deno run -A "npm:playwright@1.49.1" install chromium-headless-shell --with-deps

This dockerfile does not.

FROM denoland/deno:bin-2.1.5 AS deno
FROM debian:12-slim
COPY --from=deno /deno /usr/local/bin/deno
RUN deno run -A "npm:playwright@1.49.1" install chromium-headless-shell --with-deps

The only difference is the deno version from 2.1.4 to 2.1.5.
Playwright fails to download the browsers and fails like this.

Downloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://playwright.azureedge.net/builds/chromium/1148/chromium-headless-shell-linux.zip
BadResource: Bad resource ID
    at node:http:306:27
    at HttpsClientRequest._writeHeader (node:http:398:7)
    at HttpsClientRequest._flushHeaders (node:_http_outgoing:382:12)
    at onConnect (node:http:444:16)
    at node:http:451:11
    at processTicksAndRejections (ext:deno_node/_next_tick.ts:28:11)
    at runNextTicks (ext:deno_node/_next_tick.ts:76:3)
    at eventLoopTick (ext:core/01_core.js:182:21) {
  name: "BadResource"
}

Possibly similar to #27629 but only because the error message looks similar & the regression appears to fit the timeline but I'm just a humble deno user, I'm no expert.

FWIW another issue related to 2.1.5 & playwright #27623

Metadata

Assignees

Type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions