We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client receives nothing if a response is quite big and if it is sent from exception filter. Also there is error in logs
"err":{"type":"Error","message":"premature close","stack":"Error: premature close\n at onclosenexttick (/Users/sgrigorev/Projects/nestjs-compress-issue/node_modules/end-of-stream/index.js:54:86)\n at processTicksAndRejections (internal/process/task_queues.js:77:11)"},"msg":"premature close"}
https://github.com/sgrigorev/nestjs-compress-issue
See readme in reproduction code
Client must not receive empty response if compression is enabled
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
No response
9.2.1
"@fastify/compress": "^6.2.0", "@nestjs/common": "^9.2.1", "@nestjs/core": "^9.2.1", "@nestjs/platform-fastify": "^9.2.1", "fastify": "^4.10.2", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", "rxjs": "^7.2.0"
16.14.2
There was a similar issue with "Premature close" error in the @fastify/compress library. It might be related.
The text was updated successfully, but these errors were encountered:
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Current behavior
Client receives nothing if a response is quite big and if it is sent from exception filter. Also there is error in logs
Minimum reproduction code
https://github.com/sgrigorev/nestjs-compress-issue
Steps to reproduce
See readme in reproduction code
Expected behavior
Client must not receive empty response if compression is enabled
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
9.2.1
Packages versions
Node.js version
16.14.2
In which operating systems have you tested?
Other
There was a similar issue with "Premature close" error in the @fastify/compress library. It might be related.
The text was updated successfully, but these errors were encountered: