You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deno run -A main.ts
error: Uncaught (in promise) TypeError: fetch failed
at fetch (file:///Users/lukahartwig/Library/Caches/deno/npm/registry.npmjs.org/undici/6.13.0/index.js:109:13)
at eventLoopTick (ext:core/01_core.js:168:7)
at async file:///Users/lukahartwig/repos/deno-blob/main.ts:3:18
Caused by: AssertionError
at new AssertionError (ext:deno_node/assertion_error.ts:414:11)
at toNode (node:assert:44:15)
at assert (node:assert:61:3)
at new Parser (file:///Users/lukahartwig/Library/Caches/deno/npm/registry.npmjs.org/undici/6.13.0/lib/dispatcher/client-h1.js:140:5)
at connectH1 (file:///Users/lukahartwig/Library/Caches/deno/npm/registry.npmjs.org/undici/6.13.0/lib/dispatcher/client-h1.js:646:21)
at eventLoopTick (ext:core/01_core.js:168:7)
at async connect (file:///Users/lukahartwig/Library/Caches/deno/npm/registry.npmjs.org/undici/6.13.0/lib/dispatcher/client.js:449:11)
The issue seems to be that Undici assertsmaxHeaderSize from node:http which is not defined in Deno.
importhttpfrom"node:http";console.log(http.maxHeaderSize);// Node -> 16384// Bun -> 16384// Deno -> undefined
The text was updated successfully, but these errors were encountered:
Version: Deno 1.42.2
Using Undici fetch breaks in Deno due to an incompatibility with
node:http
.Example
Output
The issue seems to be that Undici asserts
maxHeaderSize
fromnode:http
which is not defined in Deno.The text was updated successfully, but these errors were encountered: