<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to increase html-to-pdf render timeout in- .Net Core]]></title><description><![CDATA[<p>I'm unable to increase the timeout when creating a pretty large PDF.  The error I get indicates the default timeout is still being used.  Is there another way I should be affecting the timeout?</p>
<pre><code class="language-c#">            var renderRequest = new RenderRequest()
            {
                Template = new Template
                {
                    Content = htmlContent,
                    Engine = Engine.None,
                    Recipe = Recipe.ChromePdf,
                    Chrome = new Chrome
                    {
                        MediaType = MediaType.Screen,
                        PrintBackground = true,
                        Landscape = true,
                        WaitForNetworkIddle = false
                    },

                }
            };
            renderRequest.Options.Timeout = 99000; // does not work

            //render pdf
            var report = await JsReportMVCService.RenderAsync(renderRequest);

</code></pre>
<pre><code class="language-js">&quot;logs&quot;:&quot;instance has been daemonized and initialized successfully (pid: 15856)A critical error occurred while trying to execute the render command: Timeout Error: pdf generation not completed after 30000ms (1). caused by error (1) -&gt; meta = {\&quot;remoteStack\&quot;:\&quot;Error: Timeout Error: pdf generation not completed after 30000ms\\n    at Timeout.setTimeout (jsreportRuntime.js:151795:19)\\n    at ontimeout (timers.js:482:11)
</code></pre>
]]></description><link>https://forum.jsreport.net/topic/2061/unable-to-increase-html-to-pdf-render-timeout-in-net-core</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 14:03:43 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2061.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jul 2021 14:25:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to increase html-to-pdf render timeout in- .Net Core on Invalid Date]]></title><description><![CDATA[<p>I'm unable to increase the timeout when creating a pretty large PDF.  The error I get indicates the default timeout is still being used.  Is there another way I should be affecting the timeout?</p>
<pre><code class="language-c#">            var renderRequest = new RenderRequest()
            {
                Template = new Template
                {
                    Content = htmlContent,
                    Engine = Engine.None,
                    Recipe = Recipe.ChromePdf,
                    Chrome = new Chrome
                    {
                        MediaType = MediaType.Screen,
                        PrintBackground = true,
                        Landscape = true,
                        WaitForNetworkIddle = false
                    },

                }
            };
            renderRequest.Options.Timeout = 99000; // does not work

            //render pdf
            var report = await JsReportMVCService.RenderAsync(renderRequest);

</code></pre>
<pre><code class="language-js">&quot;logs&quot;:&quot;instance has been daemonized and initialized successfully (pid: 15856)A critical error occurred while trying to execute the render command: Timeout Error: pdf generation not completed after 30000ms (1). caused by error (1) -&gt; meta = {\&quot;remoteStack\&quot;:\&quot;Error: Timeout Error: pdf generation not completed after 30000ms\\n    at Timeout.setTimeout (jsreportRuntime.js:151795:19)\\n    at ontimeout (timers.js:482:11)
</code></pre>
]]></description><link>https://forum.jsreport.net/post/9069</link><guid isPermaLink="true">https://forum.jsreport.net/post/9069</guid><dc:creator><![CDATA[rexforab]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to increase html-to-pdf render timeout in- .Net Core on Invalid Date]]></title><description><![CDATA[<p>jsreport by default doesn't allow altering request timeout through request options.<br />
You need to opt-in to this in the jsreport configuration.</p>
<p>Like this</p>
<pre><code> new LocalReporting()
     .UseBinary(JsReportBinary.GetBinary())
     .Configure(cfg =&gt; {
          cfg.EnableRequestReportTimeout  = true;
          return cfg;
      })
     .AsUtility()  
     .Create();

</code></pre>
]]></description><link>https://forum.jsreport.net/post/9071</link><guid isPermaLink="true">https://forum.jsreport.net/post/9071</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>