Closed suprith-s-reddy closed 1 year ago
same problem here
@gremo Is there any fix for this, because i'm facing the same problem.
FYI: i'm using nodejs 16, nestJS version 9
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Is there an existing issue for this?
Current behavior
I am using nest-winston and winston packages to invoke a global logger for my nestjs API.
So I have defined the below code as a winston logger config:
file: winston-logger.config.ts
file: main.ts
file: app.module.ts
I am using postman to test my requests and responses. When I am hitting the send request button very quickly without a delay, there is a overhaul of a request which does not allow the winston to end its stream write operation, creating a write after end Node error which breaks the whole API. It also stops the server at the moment. Below is the output.
The error occurs irrespective of the API call with the above configuration. I would like to know if this is a bug by nest-winston or the core winston package itself and if there is any workaround for the same.
package
nest-winston and winston
NestJS version
9.0.0
Packages versions
Node.js version
18.11.0
In which operating systems have you tested?