deno icon indicating copy to clipboard operation
deno copied to clipboard

error: Uncaught (in promise) "resource closed"

Open huseeiin opened this issue 4 months ago • 5 comments

Version: Deno 2.4.2

Reproduction

deno run -A npm:create-solid@latest select SolidStart, Yes for TypeScript and basic for the template then install dependencies, build with deno-server preset:

import { defineConfig } from "@solidjs/start/config";

export default defineConfig({ server: { preset: "deno-server" } });

after running the server with deno task --config .output/deno.json start, run this code:

for (let index = 0; index < 10_000_000; index++) {
  const a = new AbortController();
  await fetch("http://localhost:3000", { signal: a.signal });
  a.abort();
}

you'll see the server crash with the error.

huseeiin avatar Jul 28 '25 15:07 huseeiin

full logs?

CyanChanges avatar Aug 07 '25 06:08 CyanChanges

full logs?

[unhandledRejection] [object PromiseRejectionEvent]
error: Uncaught (in promise) "resource closed"

huseeiin avatar Aug 07 '25 07:08 huseeiin

i think this doesn't happen anymore but the performance got degraded, its now slower than node. any confirms @bartlomieju?

huseeiin avatar Nov 23 '25 15:11 huseeiin

Can you be more specific? What exactly has degraded? Do you have a benchmark you can share?

bartlomieju avatar Nov 24 '25 10:11 bartlomieju

Can you be more specific? What exactly has degraded? Do you have a benchmark you can share?

oha -n 10000 http://localhost:3000 with the reproduction in the original post

huseeiin avatar Nov 24 '25 11:11 huseeiin