Expose ReportController Errors

7 posts, 0 answers
  1. Kori
    Kori avatar
    73 posts
    Member since:
    Dec 2008

    Posted 12 Apr 2016 Link to this post

    Hi,

    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
    Admin
    Stef avatar
    3610 posts

    Posted 14 Apr 2016 Link to this post

    Hi,

    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.

    Regards,
    Stef
    Telerik
    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
  3. Krishna Sumanth
    Krishna Sumanth avatar
    2 posts
    Member since:
    Jan 2018

    Posted 22 Jan 2018 in reply to Kori Link to this post

    Hi .any luck
  4. Kori
    Kori avatar
    73 posts
    Member since:
    Dec 2008

    Posted 22 Jan 2018 in reply to Krishna Sumanth Link to this post

    No, no luck here. Users are still seeing periodic errors and I can't capture them since I can't reproduce.
  5. Katia
    Admin
    Katia avatar
    693 posts

    Posted 25 Jan 2018 Link to this post

    Hello kfrancis,

    Is it possible to ask some of the users that reproduce the errors to capture the application requests using Fiddler? To create a trace they will need to use Fiddler > File > Save > All sessions option.
    You can forward the produced trace file to us via ticketing system or post the information about requests sent by HTML5 viewer here. This way we can check more detailed information about requests and the error messages. Information about request can be seen in Fiddler > Inspectors > Raw tab.


    Regards,
    Katia
    Progress Telerik
    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
  6. Krishna Sumanth
    Krishna Sumanth avatar
    2 posts
    Member since:
    Jan 2018

    Posted 27 Feb 2018 in reply to Katia Link to this post

    Hi ,

    I am getting this issue when in api servers where telerik rest services were is in load balancer. and reportviwer in web are also in load balancers.

    If i stopped one web server and one api server report works fine

    Thanks,

    Sumanth

  7. Todor
    Admin
    Todor avatar
    396 posts

    Posted 02 Mar 2018 Link to this post

    Hi Sumanth,

    The problem might occur when using File cache or Database cache IStorage interface implementation in WebFarm.
    For WebFarms we recommend using MsSqlServerStorage or RedisStorage. Check this article for more details.

    Regards,
    Todor
    Progress Telerik
    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