From 2385a503724cd3065ed81cd3c51a89c8176d7aff Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 24 Dec 2021 15:12:48 +0000 Subject: [PATCH] --- server/AyaNova/biz/ReportBiz.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/AyaNova/biz/ReportBiz.cs b/server/AyaNova/biz/ReportBiz.cs index aa2a9fe2..679e098e 100644 --- a/server/AyaNova/biz/ReportBiz.cs +++ b/server/AyaNova/biz/ReportBiz.cs @@ -786,7 +786,12 @@ namespace AyaNova.Biz { throw; } - catch + catch(PuppeteerSharp.TargetClosedException){ + //we closed it because the timeout hit and the CoreJobReportRenderEngineProcessCleanup job cleaned it out + //so return the error the client expects in this scenario + throw new ReportRenderTimeOutException(); + } + catch (Exception ex) { //This is the error when a helper is used on the template but doesn't exist: //Evaluation failed: d @@ -796,6 +801,7 @@ namespace AyaNova.Biz log.LogInformation($"Exception caught while rendering report \"{report.Name}\", report Page console log:"); log.LogInformation(PageLog.ToString()); } + log.LogInformation(ex, "Error during report render:"); // var v=await page.GetContentAsync();//for debugging purposes throw;