-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
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
Ability to view actual HTTP POST request details #164
Comments
I'm relatively new to elmah but I believe what you're looking for is the Raw/Source data which is available via XML or JSON. I use the XML but it does display the name/value pairs for form where the error was thrown. Hope that helps. Reported by |
We are using elmah on most of our web projects and I would find it very useful for the error email to contain the RAW request body. We do not use traditional form posts as I am posting JSON in the request body to the server (Single Page Application). Most of the generated errors are for POST actions (asp.net MVC) and without the request body it's very difficult to debug. Since we also run a web farm going to the elmah.axd page can be tricky. Any thoughts? |
@MarkPerryBV Have a look at my answer to a similar question on StackOverflow: “Elmah: How to get JSON HTTP request body from error report?” I'm quoting it here for reference and search-ability:
|
I think what I might try is adding an ActionFilter to my MVC controller actions which stores a copy of the RequestBody in HttpContext.Items to be able to attach to the Error Email as advised. |
@MarkPerryBV Would be awesome if you can share your findings/solution once your attempt comes to a conclusion. |
What new or enhanced feature are you proposing?
This is similar to Issue #124 except that I'd like to view POST or request details on the webpage rather than the email.
Instead of limiting it, I'd rather have it show everything included in the request. Ideally, this would create a namevaluecollection to simply display all form fields and their submitted values.
What goal would this enhancement help you achieve?
I'd be able to inspect bad HTTP requests so I can see if people are inputting "invalid" data that is really valid.
Reported by
kamran.ayub
on 2010-03-27 16:24:18The text was updated successfully, but these errors were encountered: