Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf.HtmlToPdfException in Azure but no error locally Options
April W
Posted: Tuesday, March 30, 2021 3:28:38 PM
Rank: Newbie
Groups: Member

Joined: 3/30/2021
Posts: 1
Hi Support,

I'm working on an app service deployed in Azure which uses EO.Pdf to transform html into a PDF. I keep getting the following EO exception when I send a request to the api via postman:

Message": "An error has occurred.",
"ExceptionMessage": "Conversion failed. EvalScript failed because script engine is not ready or is shutdown before the script can finish. Please use QueueScriptCall instead of EvalScript to execute JavaScript code in this case.",
"ExceptionType": "EO.Pdf.HtmlToPdfException",
"StackTrace": " at HtmlToPdfServices.HtmlToPdfController.Process(HtmlToPdfTypeModel m) in D:\\a\\1\\s\\Application\\HtmlToPdfServices2\\Controllers\\HtmlToPdfController.cs:line 114\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_3.<GetExecutor>b__3(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__1.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__5.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.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()",

"InnerException": {
"Message": "An error has occurred.",
"ExceptionMessage": "EvalScript failed because script engine is not ready or is shutdown before the script can finish. Please use QueueScriptCall instead of EvalScript to execute JavaScript code in this case.",
"ExceptionType": "EO.Internal.iexd",
"StackTrace": " at EO.Pdf.HtmlToPdfException.cfgu(Exception zz)\r\n at EO.Internal.bwhj.fmia(bwhk vi)\r\n at EO.Internal.bwhj.fmia()\r\n at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc)\r\n at EO.Pdf.HtmlToPdf.unrk.cyuj()\r\n at EO.Internal.bwms.sdow[a](bsgb`1 bqn)",
"InnerException": {
"Message": "An error has occurred.",
"ExceptionMessage": "EvalScript failed because script engine is not ready or is shutdown before the script can finish. Please use QueueScriptCall instead of EvalScript to execute JavaScript code in this case.",
"ExceptionType": "EO.WebBrowser.JSInvokeException",
"StackTrace": null
}


I'm left pretty confused since I don't get any error like this when I test locally (I'm using v20.3.34). Would you possibly have any pointers to resolve this problem? Thanks in advance!


eo_support
Posted: Wednesday, March 31, 2021 5:04:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
Hi,

Please try to update to the current version and see if that resolves the issue. We have fixed an issue that may cause this problem in build 2021.0.32.0.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.