Request was aborted by express.text middleware because:
Request body length does not match content-length header (I know it's more like hypothetical situation, but anyway)
But there is request completed message from pino-http because res.writableEnded is true.
Maybe it is better to change condition for defaultSuccessfulRequestMessageProvider to something like this:
Demo on codesandbox
Request was aborted by
express.text
middleware because:Request body length does not match content-length header
(I know it's more like hypothetical situation, but anyway)But there is
request completed
message from pino-http becauseres.writableEnded
istrue
. Maybe it is better to change condition for defaultSuccessfulRequestMessageProvider to something like this: