Closed nikasha89 closed 10 months ago
Try using cURL or another http client. Could be a browser expected behavior
Hi! I have tried using cURL and the behaviour is the same, I had to do another approach checking if the request and the response were logged previously, but I think the LoggingMiddleware must be triggered just one time not twice...
Thanks in advance!
Ana Rodríguez González
El jue, 4 ene 2024, 11:42, Micael Levi L. Cavalcante < @.***> escribió:
Try using cURL or another http client. Could be a browser expected behavior
— Reply to this email directly, view it on GitHub https://github.com/nestjs/nest/issues/13007#issuecomment-1876879121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIZ2OT2QZCHSIEUFVJQ2X3YM2BQPAVCNFSM6AAAAABBMUSXZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWHA3TSMJSGE . You are receiving this because you authored the thread.Message ID: @.***>
so please provide a minimum reproduction repository
Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the # 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.
Is there an existing issue for this?
Current behavior
LogMiddleware is written twice each request & response. You can see a whole description with code here in StackOverFlow issue.
Minimum reproduction code
https://stackoverflow.com/questions/77751486/loggingmiddleware-nestjs-duplicated-log-records
Steps to reproduce
Expected behavior
LogMiddleware is written just 1 time each request & response.
Package
Other package
No response
NestJS version
9.1.6
Packages versions
Node.js version
18.13.0
In which operating systems have you tested?
Other
I had to cut the current body because there is a limit... That's why I set the link to stackOverFlow with the description, and the github project url is private, so you can not access to the whole code but yes to the specific issue in the needed code that I have shared in StackOverFlow.