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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
3.28.0
Plugin version
6.2.2
Node.js version
16.14.2
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
debian 11
Description
after following the installation and setup from the readme.md i get this error
[1650708990255] WARN (20425 on 589db73f9ca3): response terminated with an error with headers already sent
reqId: "req-1"
err: {
"type": "TrailerMismatchError",
"message": "Trailers does not match trailer header",
"stack":
TrailerMismatchError: Trailers does not match trailer header
at Parser.onMessageComplete (/workspace/common/temp/node_modules/.pnpm/undici@4.16.0/node_modules/undici/lib/client.js:957:30)
at wasm_on_message_complete (/workspace/common/temp/node_modules/.pnpm/undici@4.16.0/node_modules/undici/lib/client.js:468:30)
at wasm://wasm/0002afd2:wasm-function[45]:0x8dc
at wasm://wasm/0002afd2:wasm-function[56]:0x1ad3
at wasm://wasm/0002afd2:wasm-function[55]:0xcd7
at wasm://wasm/0002afd2:wasm-function[21]:0x4e4
at Parser.execute (/workspace/common/temp/node_modules/.pnpm/undici@4.16.0/node_modules/undici/lib/client.js:602:22)
at Parser.readMore (/workspace/common/temp/node_modules/.pnpm/undici@4.16.0/node_modules/undici/lib/client.js:570:12)
at Socket.onSocketReadable (/workspace/common/temp/node_modules/.pnpm/undici@4.16.0/node_modules/undici/lib/client.js:1019:10)
at Socket.emit (node:events:526:28)
"name": "TrailerMismatchError",
"code": "UND_ERR_TRAILER_MISMATCH"
}
I searched for the solutions and only thing i can find is this nodejs/undici#880 which was not useful at all.
Steps to Reproduce
follow the readme.md
Expected Behavior
to work
The text was updated successfully, but these errors were encountered:
importFastify,{FastifyInstance}from'fastify';importfastifyHttpProxyfrom'fastify-http-proxy';constipfsServer: string='http://127.0.0.1:5001';/** * Main entry point * @public */exportasyncfunctionmain(): Promise<void>{constserver: FastifyInstance=Fastify({logger: {prettyPrint: true}});server.register(fastifyHttpProxy,{upstream: ipfsServer,prefix: '/',http2: false});awaitserver.listen(3000,'0.0.0.0');process.on('SIGTERM',()=>{console.log('got SIGTERM');server.close(()=>{console.log('Process terminated');});});}main().catch(console.error);
And for your convenience here is the screenshot too:
The reason why i posted this here and not in the undici is because the same people are involved and posting it there would require me to make the repo and setup to demo the error, while here is literally the example from the readme.md
Prerequisites
Fastify version
3.28.0
Plugin version
6.2.2
Node.js version
16.14.2
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
debian 11
Description
after following the installation and setup from the readme.md i get this error
I searched for the solutions and only thing i can find is this nodejs/undici#880 which was not useful at all.
Steps to Reproduce
follow the readme.md
Expected Behavior
to work
The text was updated successfully, but these errors were encountered: