[Ultimate PDF] Connection error while generating pdf
Forge component by Leonardo Fernandes
Application Type
Mobile, Reactive

The Ultimate PDF method is working fine in the development environment. however, it is not working when moving to the test environment. 

The SetupLocalBrowserExt is returning an error with the message "Unable to connect to the remote server".

 before getting this error I am getting an error saying that "The connection has timed out". 

I am not sure what is going on and what is meant by the remote server in the SetupLocalBrowserExt method.

Appreciate any help.

Hi Kawthar,


Are you using your personal environment? and please make sure your network is stable.


No, I am using the company testing environment and the network is stable. does Ultimate PDF try to access any external link on the internet? 

Hi, I have the same error popup. This is from the demo page, Maybe there is something wrong 

Failed to launch browser! [0906/151510.595:ERROR:network_change_notifier_win.cc(228)] WSALookupServiceBegin failed with: 0

[0906/151510.659:ERROR:os_crypt_win.cc(70)] Failed to encrypt: The system cannot find the file specified. (0x2)

[0906/151510.659:FATAL:headless_browser_main_parts.cc(103)] Check failed: OSCrypt::Init(local_state_.get()). 

Backtrace:

IsSandboxedProcess [0x00007FF877951842+705042]

IsSandboxedProcess [0x00007FF8778D39A2+189298]

IsSandboxedProcess [0x00007FF8778E2AF8+251080]

IsSandboxedProcess [0x00007FF8778E39E0+254896]

RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FF879122123+12980755]

RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FF879121E8D+12980093]

ovly_debug_event [0x00007FF875F15929+16331561]

ovly_debug_event [0x00007FF8762D5B17+20264215]

ovly_debug_event [0x00007FF875F14675+16326773]

ovly_debug_event [0x00007FF875F173BE+16338366]

IsSandboxedProcess [0x00007FF8783C7DB7+11675527]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF87786A837+8179991]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF87786B5AD+8183437]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF87786B20C+8182508]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF87786A1BD+8178333]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF87786A53A+8179226]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF8778A4D1A+8418810]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF8778A4BDC+8418492]

CrashForExceptionInNonABICompliantCodeRange [0x00007FF8778A49E7+8417991]

ChromeMain [0x00007FF874F81238+408]

Ordinal0 [0x00007FF6895B26B8+9912]

Ordinal0 [0x00007FF6895B1A41+6721]

GetHandleVerifier [0x00007FF6896FAF42+904642]

BaseThreadInitThunk [0x00007FF8A20884D4+20]

RtlUserThreadStart [0x00007FF8A21B1821+33]


[0906/151510.829:ERROR:gpu_init.cc(426)] Passthrough is not supported, GL isswiftshader


This is the error log


mvp_badge
MVP


Please use the 4.0.4 version, and let me know if it fixes this error.

Hi, thanks for your update. It work when i change the site property of chromium. 

Sorry for asking but is there a way to wait for the website to render before print it into pdf  and where can i put a wait command to wait for it render.

mvp_badge
MVP

The browser will wait for all network activity to stop, before taking a print of the website. Is that not enough for your use case? Could you elaborate why do you need the browser to wait longer than that?

I have a web block that has 1 input parameter to get it data. I tried to send the url with the parameter in it like test.com/render?transactionid=164 to the PrintToPdf. When i test the URL alone it get data but when i tried print it out with the PrintToPdf i got the blank form only, not the data so i presume that the pdf printer print the web before it render.

mvp_badge
MVP

That shouldn't happen.

But you can try invoking the WaitUntilReadyBeforeCapturing action during OnInitialize or OnReady, and when the screen is ready to be captured you can invoke the IsReadyForCapture action.

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