#Deno + oak crashes and i dont know what makes it crash

1 messages · Page 1 of 1 (latest)

fierce matrix
#

I get the following error, running deno 2.1.1:
error: Uncaught (in promise) TypeError: Cannot read headers: request closed return this.#request.headers; ^ at Object.get headerList (ext:deno_fetch/23_request.js:125:17) at Request.request.<computed> (ext:deno_fetch/23_request.js:601:60) at Request.get [headers] (ext:deno_fetch/23_request.js:260:46) at Request.get headers (ext:deno_fetch/23_request.js:481:16) at NativeRequest.get headers (https://deno.land/x/[email protected]/http_server_native_request.ts:68:26) at new Request (https://deno.land/x/[email protected]/request.ts:145:21) at new Context (https://deno.land/x/[email protected]/context.ts:173:20) at Application.#handleRequest (https://deno.land/x/[email protected]/application.ts:428:21) at Application.listen (https://deno.land/x/[email protected]/application.ts:613:28) at eventLoopTick (ext:core/01_core.js:175:7)

elfin bloom
#

this looks like something got closed before something else had a chance to work with it, so like... a missing await? can you show the code where this happens?