This commit is contained in:
@@ -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"));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user