serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.59k stars 795 forks source link

An unhandled exception occurred while processing the request. InvalidOperationException: Generated PDF file is empty![Bug report]: <Short description of the bug> #7170

Closed AMRAAMMU closed 3 months ago

AMRAAMMU commented 3 months ago

Before submitting the bug report, please read and check the following items

What happened?

An unhandled exception occurred while processing the request. InvalidOperationException: Generated PDF file is empty! Serenity.Reporting.HtmlToPdfConverter.Execute()

Stack Query Cookies Headers InvalidOperationException: Generated PDF file is empty! Serenity.Reporting.HtmlToPdfConverter.Execute() BitPro.SchoolMate.ReportController.RenderAsPdf(IReport report, string key, string opt) in ReportController.cs BitPro.SchoolMate.ReportController.Execute(string key, string opt, string ext, bool download, bool printing) in ReportController.cs lambda_method(Closure , object , object[] ) Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(object target, object[] parameters) Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor+SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments) Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted) Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter() Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync() Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync() Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Show raw exception details the others are working properly and in the local db also working this report correctly but in live is showing the error

What did you expect to happen?

want to solve this error as soon as possible

How to reproduce?

i dont now

What Serenity Nuget Versions are you seeing the problem on? (separated by comma)

Serenity.Scripts.3.9.14

Relevant log output

No response

Serene template version

No response

Sergen version

No response

Code editor

No response

Operating System

Windows 11

Node.js version

No response

TypeScript version

No response

Database type and version

No response

On which device do you see the problem?

No response

On which operating system do you see the problem?

No response

On which browsers do you see the problem?

No response

On what version of the browsers do you see the problem?

No response

Additional information

No response

VictorTomaili commented 3 months ago

Please use discussions

AMRAAMMU commented 3 months ago

How

VictorTomaili commented 3 months ago

https://github.com/serenity-is/Serenity/discussions

AMRAAMMU commented 3 months ago

Ok