Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brad-jones opened this issue Jan 13, 2025 · 2 comments · Fixed by #27662 · May be fixed by #27779
Open

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

brad-jones opened this issue Jan 13, 2025 · 2 comments · Fixed by #27662 · May be fixed by #27779
Assignees

Comments

@brad-jones
Copy link

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:[email protected]" 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:[email protected]" 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

@brad-jones
Copy link
Author

@kt3k for what it's worth this appears to have regressed again in 2.1.7

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:312:27
    at HttpsClientRequest._writeHeader (node:http:404:7)
    at HttpsClientRequest._flushHeaders (node:_http_outgoing:382:12)
    at onConnect (node:http:450:16)
    at node:http:463: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:184:21) {
  name: "BadResource"
}

@kt3k kt3k reopened this Jan 23, 2025
kt3k added a commit to kt3k/deno that referenced this issue Jan 23, 2025
@kt3k kt3k linked a pull request Jan 23, 2025 that will close this issue
1 task
@kt3k
Copy link
Member

kt3k commented Jan 23, 2025

Seems regressed by #27707. I'm trying to fix this by #27779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants