90
Views
5
Comments
[Ultimate PDF] net::ERR_CONNECTION_RESET when using UltimatePDF component
ultimate-pdf
Reactive icon
Forge component by Leonardo Fernandes
Application Type
Traditional Web
Service Studio Version
11.10.20 (Build 41551)

We are currently trying to use the UltimatePDF component. 

When we call the action PrintToPDF as in the action below: 


We get a connection error in the PrintToPdf extension method.

The error looks like: "net::ERR_CONNECTION_RESET at https://<OurEnvironment>/<OurApp>/<OurScreen>.aspx at https://<OurEnvironment>/<OurApp>/<OurScreen>.aspx"

We are using a local temporary folder and working inside a client firewall.  

Here is the stack of the error: 

[1] net::ERR_CONNECTION_RESET at https://<OurEnvironment>/<OurApp>/<OurScreen>.aspx at https://<OurEnvironment>/<OurApp>/<OurScreen>.aspx
at PuppeteerSharp.FrameManager.<NavigateFrameAsync>d__42.MoveNext()
--- 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 OutSystems.NssUltimatePDF.Browser.BrowserExecutionContext.<PrintPDF>d__9.MoveNext()
--- 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 OutSystems.NssUltimatePDF.CssUltimatePDF.RunAsync[T](Func`1 async)
at OutSystems.NssUltimatePDF.CssUltimatePDF.MssPrintPDF(String ssURL, String ssTemporaryFolder, Int32 ssBrowserRevision, RCViewportRecord ssViewport, RCPaperRecord ssPaper, RLCookieRecordList ssCookies, Byte[]& ssPDF)
at ssUltimatePDF_Service.RssExtensionUltimatePDF.MssPrintPDFExt(HeContext heContext, String inParamURL, String inParamTemporaryFolder, Int32 inParamBrowserRevision, IRecord inParamViewport, IRecord inParamPaper, RecordList inParamCookies, Byte[]& outParamPDF)

[2] net::ERR_CONNECTION_RESET at https://<OurEnvironment>/<OurApp>/<OurScreen>.aspx
at PuppeteerSharp.FrameManager.<NavigateAsync>d__43.MoveNext()
--- 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.FrameManager.<NavigateFrameAsync>d__42.MoveNext()


Can you please help? 

Hello @Beatriz Lopes,

In your URL try using the following built in functions for URL and see how it goes:

MakeAbsoluteURL(GetEntryURL(<Your Screen Name>,<Your Application Name>))

Regards,

AJ

Hi @=AJ=

Thank you for your answer. 

I did as you suggested: 

However, I keep getting the same error. 

Have you checked that your client firewall whether it's blocking the traffic out to google api url? Ask IT to unblock the url.


Let me know wether this resolve your problem or not.


Burt


Hi Burt, 

Thanks for your answer. 

I have not because the client has security concerns with that approach. We are running the binaries from a local folder as explained in this other post: https://www.outsystems.com/forums/discussion/55544/ultimatepdf-reference-to-https-storage-googleapis-com/ 

Our site properties are defined as in the image below: 

Beatriz

Hi Beatriz, 

I have the same problem, did you manage to get past this topic?

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