Skip to content

":method" is an invalid header name. #28807

@superstreber3

Description

@superstreber3

Which @angular/* package(s) are the source of the bug?

platform-server, Don't known / other

Is this a regression?

Yes

Description

After upgrading to 19.0.0-rc.1 and enabling SSR, I received this error on startup. When I use Angular 18, I don't receive that error.

I tried it with node 18, 21 and 22

Image
¨

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

08:51:08 [vite] Internal server error: Headers.append: ":method" is an invalid header name.
at webidl.errors.exception (node:internal/deps/undici/undici:1801:14)
at webidl.errors.invalidArgument (node:internal/deps/undici/undici:1812:28)
at appendHeader (node:internal/deps/undici/undici:2218:29)
at _Headers.append (node:internal/deps/undici/undici:2341:16)
at createRequestHeaders (C:\Projects\k8-fastbuild-ST-70f2edae98f4\bin\packages\angular\ssr\node\src\request.mjs:35:21)
at createWebRequestFromNodeRequest (C:\Projects\k8-fastbuild-ST-70f2edae98f4\bin\packages\angular\ssr\node\src\request.mjs:20:18)
at C:\Projects**\client\node_modules@angular\build\src\tools\vite\middlewares\ssr-middleware.js:37:40
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 19.0.0-rc.1
Node: 18.20.4
Package Manager: yarn 3.6.3
OS: win32 x64

Angular: 19.0.0-rc.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker, ssr

Package Version

@angular-devkit/architect 0.1900.0-rc.1
@angular-devkit/build-angular 19.0.0-rc.1
@angular-devkit/core 19.0.0-rc.1
@angular-devkit/schematics 19.0.0-rc.1
@schematics/angular 19.0.0-rc.1
rxjs 7.8.1
typescript 5.5.4
zone.js 0.15.0

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions