I'm having an intermittent issue where calls to the reporting REST API service are failing with a 500 error (below).
The steps that are occurring are:
- Report run is initiated.
- Can see successful POST to the instances URL: ~/api/reports/clients/113946-7092/instances. Responds with: {"instanceId":"105138-bc13"}.
- Can see successful POST to the documents URL: ~/api/reports/clients/113946-7092/instances/105138-bc13/documents. Responds with: {"documentId":"114313-ce58114313-a5ac"}
- Can see unsuccessful GET to the info URL: ~/api/reports/clients/113946-7092/instances/105138-bc13/documents/114313-ce58114313-a5ac/info. Responds with the below 500 error.
If I keep clicking the Preview button (with the same parameters set), eventually, one of the requests will complete successfully and the report runs. Otherwise, the above happens.
Has anyone run into this before?
500 error being returned:
{
"message": "",
"exceptionMessage": "Invalid report typeException has been thrown by the target of an invocation.",
"exceptionType": "Telerik.Reporting.Services.Engine.DocumentRenderException",
"stackTrace": " at Telerik.Reporting.Services.Engine.Document.GetDocumentInfo() in c:\\temp\\reporting\\RBuild-28809\\Reporting_Build\\Source\\Code\\Telerik.Reporting.Services.Engine\\Document.cs:line 181\r\n at Telerik.Reporting.Services.Engine.ReportEngine.GetDocumentInfo(String clientID, String instanceID, String documentID) in c:\\temp\\reporting\\RBuild-28809\\Reporting_Build\\Source\\Code\\Telerik.Reporting.Services.Engine\\ReportEngine.cs:line 391\r\n at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetDocumentInfo(String clientID, String instanceID, String documentID) in c:\\temp\\reporting\\RBuild-28809\\Reporting_Build\\Source\\Code\\Telerik.Reporting.Services.WebApi\\ReportsControllerBase.cs:line 291\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<
GetExecutor
>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<
InvokeActionAsyncCore
>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<
ExecuteAsync
>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<
ExecuteAsync
>d__0.MoveNext()"
}