3
Views
2
Comments
[Ultimate PDF] Error Generating PDF - Protocol error (Page.navigate): Invalid referrerPolicy
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hello,

We are having problems generating PDFs with both the 15.0.1 and 13.0.1 versions of the library.

With version 15.0.1 the generation times-out on our Windows 2022 Cloud and OnPrem servers, using the default chrome version 130.0.6723.69.

When using a newer chrome version 145.0.7632.76, we get an error "Protocol error (Page.navigate): Invalid referrerPolicy":

eSpaceVer: Id=427530, PubId=0, CompiledWith=11.40.0.46369RequestUrl: https://localhost.outsystemsenterprise.com/UltimatePDF_Service/serviceapi/PrintPDF (Method: POST)AppDomain: /LM/W3SVC/1/ROOT/UltimatePDF_Service-728-134205736328775730FilePath: D:\Outsystems\Platform Server\running\UltimatePDF_Service.1328706800\ClientIp: 127.0.0.1Locale: en-USDateFormat: yyyy-MM-ddPID: 3084 ('w3wp', Started='4/7/2026 10:20:27 PM', Priv=8649Mb, Virt=2131574Mb)TID: 566Thread Name:.NET: 4.0.30319.42000

[1] Protocol error (Page.navigate): Invalid referrerPolicy   at PuppeteerSharp.Cdp.CdpFrame.d__15.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpFrame.cs:line 106--- 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_Service.BrowserExecution.UltimatePDFExecutionContext.d__13.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_Service.BrowserExecution.UltimatePDFExecutionContext.d__11.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.PuppeteerPool.Utils.AsyncUtils.Wait[T](Task`1 task)   at OutSystems.PuppeteerPool.Utils.AsyncUtils.StartAndWait[T](Func`1 async)   at OutSystems.NssUltimatePDF_Service.CssUltimatePDF_Service.MssPrintPDF(String ssURL, String ssHost, String ssTemporaryFolder, String ssProduct, String ssRevision, RCViewportRecord ssViewport, RCEnvironmentRecord ssEnvironment, RLCookieRecordList ssCookies, RCPaperRecord ssPaper, Boolean ssFromPublicService, Boolean forceNewBrowser, Int32 ssTimeoutSeconds, RequestLogger requestLogger)   at OutSystems.NssUltimatePDF_Service.CssUltimatePDF_Service.MssPrintPDF(String ssURL, String ssHost, String ssTemporaryFolder, String ssProduct, String ssRevision, RCViewportRecord ssViewport, RCEnvironmentRecord ssEnvironment, RLCookieRecordList ssCookies, RCPaperRecord ssPaper, Boolean ssFromPublicService, Int32 ssTimeoutSeconds, Byte[]& ssPDF)   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)[2] Protocol error (Page.navigate): Invalid referrerPolicy   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at PuppeteerSharp.Helpers.TaskHelper.d__13.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Helpers/TaskHelper.cs:line 196--- 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.Helpers.TaskHelper.d__12`1.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Helpers/TaskHelper.cs:line 183--- 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.Cdp.CdpCDPSession.d__12.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpCDPSession.cs:line 113--- 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.CDPSession.d__38`1.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/CDPSession.cs:line 48--- 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.Cdp.CdpFrame.<>c__DisplayClass15_0.<g__NavigateAsync|0>d.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpFrame.cs:line 113--- 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.Cdp.CdpFrame.d__15.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpFrame.cs:line 97

With version 15.0.1 on the few not Windows 2022 servers that we still have, using the default chrome version 130.0.6723.69 works, but using the newer chrome version 145.0.7632.76, we get the same error "Protocol error (Page.navigate): Invalid referrerPolicy"

With version 13.0.1 on our Windows 2022 Cloud and OnPrem servers, the generation works using the default chrome version 130.0.6723.69, but using the newer chrome version 145.0.7632.76, we also get the same error "Protocol error (Page.navigate): Invalid referrerPolicy".

Can you please help us with this error?

Thank you.

2025-02-22 18-27-01
Alfaro
 
MVP

Hello,

I'm adding here the UltimatePDF_Service.PrintPDF Service Action HTTP Trace:

POST https://localhost.outsystemsenterprise.com/UltimatePDF_Service/serviceapi/PrintPDF HTTP/1.1

Content-Length: 1956

Content-Type: application/json

Content-Language: en-US

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIzMDVhZGQzMi04YWEzLTQzMWMtODM3Mi1kZGI3MGY3ZTQ1YTMiLCJhdWQiOiI0ZDAyMGZhNS03MTJkLTQzYzYtODliZi0zMjY0ZTU2NjAyM2EiLCJleHAiOjE3NzYxNjcwMzQuMDUwNzg4NCwidXNlcklkIjoyNzY5MCwidGVuYW50SWQiOjIwLCJyZXF1ZXN0SGFzaCI6Im11d1UzdzZ1Q3EvUXFUQXJZR0FiS25NRHdhdHpsZ0h6Snd5N1AwOW4vS3M9In0.23bcxPewwL_LrAB_oFhWS2fTtYmMi2-B3dmCwDSiWgc

Host: localhost.outsystemsenterprise.com

User-Agent: OutSystemsPlatform

OS-Host: localhost.outsystemsenterprise.com

OS-Path: /UltimatePDF_Service

OS-Pta: /serviceapi

OS-Page: /PrintPDF

{"requestKey":"9fe0412c-ed92-4c3e-bc89-788cd21452d5","inputParameters":{"URL":"/UltimatePDF_Management/SamplePDF","Host":"<REDACTED_DEV_HOSTNAME>","TemporaryFolder":"","Product":"chrome","Revision":"145.0.7632.76","AllowRevisionDownload":false,"Viewport":{"Width":1366,"Height":768,"PPI":300.0},"Environment":{"BaseURL":"https://<REDACTED_DEV_HOSTNAME>/UltimatePDF_Management/SamplePDF"},"Cookies":[{"Name":"ASP.NET_SessionId","Value":"g1iuulp4cxs0xnxoyzufxuq1","HttpOnly":true},{"Name":"osVisitor","Value":"4cfc26b2-002c-4682-95ae-d4c3a03d54bb"},{"Name":"DEVICE_OS","Value":"windows"},{"Name":"DEVICE_BROWSER","Value":"chrome"},{"Name":"DEVICE_ORIENTATION","Value":"undefined"},{"Name":"DEVICES_TYPE","Value":"desktop"},{"Name":"osVisit","Value":"ea5e74d5-9a0a-4d81-9d51-7b82830582ed"},{"Name":"Users.sid","Value":"3216748547572533094938309954988179323","HttpOnly":true},{"Name":"nr2Users","Value":"crf%3dqGLEHAIrNewjNfIqW5aLbwKOSas%3d%3buid%3d27690%3bunm%3dS613605"},{"Name":"Users","Value":"eed95823-3934-496a-a6d7-720571ad5622"},{"Name":"pageLoadedFromBrowserCache","Value":"true"},{"Name":"ServiceCenter.sid","Value":"468978357822606784016837448425310841000","HttpOnly":true},{"Name":"nr1ServiceCenter","Value":"lid%3du7hQfeZSa2KcpWwOLv6m%2bg%3d%3dmNIiXoCjRRJZkBhOsekfig%3d%3d%3btuu%3d63911763741%3bexp%3d63911764641%3brhs%3d%3bhmc%3dohNjVEgPsDPHMWvwuHCrHw5nHAI%3d","HttpOnly":true},{"Name":"nr2ServiceCenter","Value":"crf%3dDRjHm84ZebC3QlNwD8nD2j8MnU8%3d%3buid%3d27687%3bunm%3dS613605"},{"Name":"nr1Users","Value":"lid%3dod2GXKvvOaqc67TlzYD%2bZQ%3d%3dymgzKuzWyHyOi8hpAkiNHQ%3d%3d%3btuu%3d63911763756%3bexp%3d63914355456%3brhs%3d5WEj3zqLA23dv0fJuPezZ1F6gb0%3d%3bhmc%3d%2b1jsgIGFGSywCCYEVwqUrL0OAEw%3d","HttpOnly":true}],"Paper":{"UseCustomPaper":false,"Width":0.0,"Height":0.0,"UseCustomMargins":false,"MarginTop":0.0,"MarginRight":0.0,"MarginBottom":0.0,"MarginLeft":0.0},"FromPublicService":false,"TimeoutSeconds":600,"CaptureLogs":false}}



HTTP/1.1 500 Internal Server Error

Server: Microsoft-IIS/10.0

Content-Type: application/json; charset=utf-8

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI0ZDAyMGZhNS03MTJkLTQzYzYtODliZi0zMjY0ZTU2NjAyM2EiLCJhdWQiOiIzMDVhZGQzMi04YWEzLTQzMWMtODM3Mi1kZGI3MGY3ZTQ1YTMiLCJleHAiOjE3NzYxNjcwMzkuNzk3MDE1NCwicmVzcG9uc2VIYXNoIjoicHdKWnhCZzB1YzN1R3lFMEVieFBBQ0JIdWdvcGlSOS9xT1VpcWlIaWN3OD0ifQ.Qb7Up5x706d7EiJ0FQCaguMSHpaHhFdkenvRFDpVgcM


2025-02-22 18-27-01
Alfaro
 
MVP

Hello,

We have found a solution to all the presented problems - by using Chrome Version 138.0.7204.183 we were able to generate PDFs on all servers, windows Server 2022 and previous, and on both 15.0.1 and 13.0.1 versions of the library.

Thank you.

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