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

Puppeteer NPM Bad resource ID #19846

Closed
dotellie opened this issue Jul 15, 2023 · 1 comment · Fixed by #19868
Closed

Puppeteer NPM Bad resource ID #19846

dotellie opened this issue Jul 15, 2023 · 1 comment · Fixed by #19868
Assignees
Labels
bug Something isn't working correctly node compat

Comments

@dotellie
Copy link

Decided to try using the Puppeteer version from NPM since the Deno port doesn't seem to be updated anymore and it was mentioned in the 1.35.0 announcement that the version from NPM would work. Which it does when I run it locally on my Mac, but as soon as I try to run it in a Docker container, this is what I get:

error: Uncaught BadResource: Bad resource ID
    at TCP.writev (ext:deno_node/internal_binding/stream_wrap.ts:148:17)
    at writevGeneric (ext:deno_node/internal/stream_base_commons.ts:133:28)
    at Socket._writeGeneric (node:net:933:19)
    at Socket._writev (node:net:944:14)
    at doWrite (ext:deno_node/_stream.mjs:3961:16)
    at clearBuffer (ext:deno_node/_stream.mjs:4094:9)
    at Socket.Writable.uncork (ext:deno_node/_stream.mjs:3906:11)
    at Sender.sendFrame (file:///tmp/deno-compile-app/node_modules/localhost/ws/8.13.0/lib/sender.js:471:20)
    at Sender.send (file:///tmp/deno-compile-app/node_modules/localhost/ws/8.13.0/lib/sender.js:359:12)
    at WebSocket.send (file:///tmp/deno-compile-app/node_modules/localhost/ws/8.13.0/lib/websocket.js:469:18)

I created a minimal reproduction repo in hopes that helps someone debug the issue: https://github.com/dotellie/deno-puppeteer-repro

@bartlomieju
Copy link
Member

@littledivy I believe this was caused by #19752. Please take a look and investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants