DenoDDeno
Powered by
beemoB
Denoβ€’16mo agoβ€’
2 replies
beemo

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

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/oak@v12.0.0/http_server_native_request.ts:68:26)
    at new Request (https://deno.land/x/oak@v12.0.0/request.ts:145:21)
    at new Context (https://deno.land/x/oak@v12.0.0/context.ts:173:20)
    at Application.#handleRequest (https://deno.land/x/oak@v12.0.0/application.ts:428:21)
    at Application.listen (https://deno.land/x/oak@v12.0.0/application.ts:613:28)
    at eventLoopTick (ext:core/01_core.js:175:7)
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/oak@v12.0.0/http_server_native_request.ts:68:26)
    at new Request (https://deno.land/x/oak@v12.0.0/request.ts:145:21)
    at new Context (https://deno.land/x/oak@v12.0.0/context.ts:173:20)
    at Application.#handleRequest (https://deno.land/x/oak@v12.0.0/application.ts:428:21)
    at Application.listen (https://deno.land/x/oak@v12.0.0/application.ts:613:28)
    at eventLoopTick (ext:core/01_core.js:175:7)
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

HTTPS Oak Deno
ivandpfIivandpf / help
3y ago
Issue with Deno (Oak?)
UC EnjoyerUUC Enjoyer / help
2y ago
Deno testing with local oak server
fobbanFfobban / help
3y ago