24
Views
4
Comments
[Ultimate PDF] Waiting for selector `:root:not(.ultimate-pdf-is-not-ready)` failed: Waiting failed:
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hello!
While trying to download a pdf full of charts and tables (and massive queries that can take up to 40 secs for now).
We are getting this error:
Waiting for selector `:root:not(.ultimate-pdf-is-not-ready)` failed: Waiting failed: 30000ms exceeded 
I'll leave the stack below if it helps.

Since the charts and the DA are all async, on the onReady we are setting the client action WaitUntilReadyBeforeCapturing and we have the webblocks triggering events outside to the PDF screen so that we can evaluate if we can trigger the IsReadyForCapture (all of this have been tested and works, atleast on the preview).
Also on the action ScreenToPDF_OnInitialize the we have on the onInitialize of the PDF screen, we've set both OpenInBrowser and Preview to False (don't know if this makes any difference on the error or not)

The timeout defined for the ServerAction that calls the PDF export action, is set to 500 seconds, and so is the module (in order to check if that was the problem or not)


Here's the stack:
[1] Waiting for selector `:root:not(.ultimate-pdf-is-not-ready)` failed: Waiting failed: 30000ms exceeded
   at ssUltimatePDF_Service.RssExtensionUltimatePDF_Service.MssPrintPDFExt(HeContext heContext, String inParamURL, String inParamHost, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, IRecord inParamViewport, IRecord inParamEnvironment, RecordList inParamCookies, IRecord inParamPaper, Boolean inParamFromPublicService, Int32 inParamTimeoutSeconds, Byte[]& outParamPDF)
   at ssUltimatePDF_Service.Actions.ActionPrintPDF_Execute(HeContext heContext, String inParamURL, String inParamHost, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, Boolean inParamAllowRevisionDownload, STViewportStructure inParamViewport, STEnvironmentStructure inParamEnvironment, RLCookieList inParamCookies, STPaperStructure inParamPaper, Boolean inParamFromPublicService, Int32 inParamTimeoutSeconds, Byte[]& outParamPDF)
   at ssUltimatePDF_Service.ServiceAPIController.Flows.ActionPrintPDF(HeContext heContext, String inParamURL, String inParamHost, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, Boolean inParamAllowRevisionDownload, STViewportStructure inParamViewport, STEnvironmentStructure inParamEnvironment, RLCookieList inParamCookies, STPaperStructure inParamPaper, Boolean inParamFromPublicService, Int32 inParamTimeoutSeconds, Boolean inParamCaptureLogs, Byte[]& outParamPDF, Byte[]& outParamLogsZipFile)
   at ssUltimatePDF_Service.ServiceAPIController.ServiceAPIPrintPDF()

[2] Waiting failed: 30000ms exceeded
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PuppeteerSharp.Realm.<WaitForFunctionAsync>d__19.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Realm.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PuppeteerSharp.QueryHandlers.QueryHandler.<WaitForAsync>d__9.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/QueryHandlers/QueryHandler.cs:line 137 

2025-08-07 06-30-56
Amit J
Champion

Is it possible to give a sample oml with exact you implemented to download pdf.


It would help to troubleshoot.

2021-09-09 22-42-33
Fábio Rodrigues

Hi Amit it’s not possible.


2020-05-05 19-30-34
José Mendes

Hi. Having the exact same issue as Fábio. Adopted the same approach. 

Wondering if ultimatepdf has a timeout setting? Any help by @Leonardo Fernandes would be greatly appreciated.


Cheers,


JM



2020-05-05 19-30-34
José Mendes

Hello again


In the meantime, I found out that UltimatePDf Management has some options, including timeout.



Will see if it helps...


JM


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.