-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Description
Version: Deno 2.5.2 and 2.5.3
Unfortunately I can't provide a reproducable test case. But when running our own test suite (deno script which runs puppeteer-based tests) we observe that version 2.5.2 shows strange behaviour, while version 2.5.1 works as expected. Could be something with host <-> puppeteer connection. Not sure but iirc it uses websockets. Puppeteer is a node js library, so the node js compat layer is a possible source of this bug.
On version 2.5.1 I can run my test suite successfully 3 times in a row.
On version 2.5.2 all 3 attempts are terminated with various puppeteer connection errors, which look like this:
Protocol error (Input.dispatchMouseEvent): Session closed. Most likely the page has been closed.
error: Uncaught (in promise) ConnectionClosedError: Connection closed.
at Connection._rawSend (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Connection.js:93:35)
at Connection.send (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Connection.js:86:21)
at CdpPage.close (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Page.js:852:34)
Protocol error (Input.dispatchMouseEvent): Target closed
error: Uncaught (in promise) ConnectionClosedError: Connection closed.
at Connection._rawSend (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Connection.js:93:35)
at Connection.send (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Connection.js:86:21)
at CdpPage.close (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Page.js:852:34)
Protocol error (Emulation.setTouchEmulationEnabled): Session closed. Most likely the page has been closed.
error: Uncaught (in promise) ConnectionClosedError: Connection closed.
at Connection._rawSend (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Connection.js:93:35)
at Connection.send (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Connection.js:86:21)
at CdpPage.close (file:///home/nsf/.cache/deno/npm/registry.npmjs.org/puppeteer-core/24.23.0/lib/esm/puppeteer/cdp/Page.js:852:34)