Expose ReportController Errors

2 posts, 0 answers
  1. kfrancis
    kfrancis avatar
    71 posts
    Member since:
    Dec 2008

    Posted 12 Apr 2016 Link to this post


    I've been seeing this issue for a long time, but I can't seem to find where to log the errors that are being thrown when users are generating reports with the WebAPI/HTML5 report viewer.

    I see tons of exceptions happening that look like this:

    * /api/reports/clients/094113-ecd1/instances/094113-5731/documents/094113-aabb094141-da97 - 500 Internal Server Error

    * /api/reports/clients/094843-e940/instances/095003-e56b/documents/095003-5023095009-20af - 500 Internal Server Error

    * /api/reports/clients/112823-f291/instances/113024-cb46/documents/113024-837d113030-be3d - 500 Internal Server Error

    * /api/reports/clients/112823-f291/instances/113219-b3dd/documents/113219-bc2d113229-8387 - 500 Internal Server Error

    Is there anything I can do to catch these? Is it as simple as adding a filter to catch the webapi unhandled exceptions and logging them?


  2. Stef
    Stef avatar
    3611 posts

    Posted 14 Apr 2016 Link to this post


    You can add filters for specific errors. If there is an error message displayed in the viewer, you can catch the error at the client through the viewer's error event. Please consider the examples posted in the HTML5 Report Viewer - Custom Error Message from Custom Report Resolver forum thread (the case is not specific for custom resolvers).

    On a side note, internal errors may be result of misconfiguration or issues on the server where reports are rendered. Please check the error message delivered with the response of the failing requests and post the details.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top