NickCraver / StackExchange.Exceptional

Error handler used for the Stack Exchange network
https://nickcraver.com/StackExchange.Exceptional/
Apache License 2.0
862 stars 170 forks source link

Where to view Request Body in Exceptional logs #214

Closed IronSean closed 2 years ago

IronSean commented 2 years ago

Other issues on here mention that viewing the request body is possible in Exceptional, but I can not figure out where to view the request body or configure exception to start storing the request bodies if it does not by default.

IronSean commented 2 years ago

Hello?

NickCraver commented 2 years ago

Hey Sean - this isn't a supported feature of Exceptional. It stores form data if present but raw bodies are intentionally not included as that presents all sorts of security issues. You could capture and add them as custom data if you want, but in .NET Core that likely means additional buffering...and keep in mind the security consequences (e.g. capturing a password). We can't reasonably filter a raw body there.

IronSean commented 2 years ago

Thank you for the response Nick.