Skip to content

Conversation

@morganwalkup
Copy link

Skips HTTP/2 pseudo headers in reqres.ts to avoid a process-killing TypeError:

node:internal/deps/undici/undici:4282
      return new TypeError(`${message.header}: ${message.message}`);
             ^

TypeError: Headers.append: ":method" is an invalid header name.
    at webidl.errors.exception (node:internal/deps/undici/undici:4282:14)
    at webidl.errors.invalidArgument (node:internal/deps/undici/undici:4293:28)
    at appendHeader (node:internal/deps/undici/undici:9464:29)
    at fill (node:internal/deps/undici/undici:9445:11)
    at new Request (node:internal/deps/undici/undici:10617:13)
    at getNormalizedRequestFromNodeRequest (file:///Users/morgan.walkup/Repos/frontend/node_modules/@netlify/dev/dist/main.js:205:10)
    at NetlifyDev.handleAndIntrospectNodeRequest (file:///Users/morgan.walkup/Repos/frontend/node_modules/@netlify/dev/dist/main.js:473:26)
    at async netlifyPreMiddleware (file:///Users/morgan.walkup/Repos/frontend/node_modules/@netlify/vite-plugin/dist/main.js:139:26)

Node.js v24.11.0

@morganwalkup
Copy link
Author

@serhalp 👋 Are you the right person to take a look at this? It's a blocking issue for anyone who runs into it. I'm not sure yet if it's caused by a certain Node version, or some other shared dependency. But the fix is simple.

@serhalp serhalp linked an issue Nov 13, 2025 that may be closed by this pull request
@serhalp
Copy link
Member

serhalp commented Nov 14, 2025

Supersed by #534. Thank you for the PR! 🙌🏼

@serhalp serhalp closed this Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: Headers.append: ":method" is an invalid header name

2 participants