This commit is contained in:
2021-12-23 19:42:50 +00:00
parent 505898875f
commit 5bb1df0e80
6 changed files with 27 additions and 23 deletions

View File

@@ -185,9 +185,12 @@ namespace AyaNova.Api.Controllers
return Ok(ApiOkResponse.Response(reportData));
}
catch (ReportRenderTimeOutException)
{
{
log.LogInformation($"GetReportData timeout data list key: {selectedRequest.DataListKey}, record count:{selectedRequest.SelectedRowIds.LongLength}, user:{UserNameFromContext.Name(HttpContext.Items)} ");
return Ok(ApiOkResponse.Response(new { timeout = true, timeoutconfig = ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT }));
//note: this route is called by the report designer to get a limited subset of records so we should never see this error but including it for completeness
//report designer should show this as a general error
return BadRequest(new ApiErrorResponse(ApiErrorCode.INVALID_OPERATION, null, "timeout - select fewer records"));
}
}