<?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[How to throw error from jsreport engine if it fails to render report (Rendering async report)?]]></title><description><![CDATA[<p>Hi sir,</p>
<p>We are rendering our report asynchronously using j<strong>sreport-browser client</strong> package from our angular application.<br />
Since the report rendering is asynchronous  a url will be return like this,</p>
<p><strong>Async rendering in progress. Use Location response header to check the current status. Check it &lt;a href='<a href="http://localhost:5488/reports/624eadda935011c1881550db/status" rel="nofollow">http://localhost:5488/reports/624eadda935011c1881550db/status</a>'&gt;here&lt;/a&gt;</strong></p>
<p>And after that using <strong>afterRender hook</strong> we send a message to  our client side that report rendering is completed using  AWS websocket  and SNS).</p>
<p>But my doubt is, if report render fails at beforeRender hook itself then how to throw the error from beforeRender hook to  our client side ,because now jsreport-browser-client is returning only url like this,</p>
<p><strong>Async rendering in progress. Use Location response header to check the current status. Check it &lt;a href='<a href="http://localhost:5488/reports/624eadda935011c1881550db/status" rel="nofollow">http://localhost:5488/reports/624eadda935011c1881550db/status</a>'&gt;here&lt;/a&gt;</strong></p>
<p>Could you please suggest any solution?</p>
]]></description><link>https://forum.jsreport.net/topic/2572/how-to-throw-error-from-jsreport-engine-if-it-fails-to-render-report-rendering-async-report</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 01:20:15 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2572.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Sep 2022 10:39:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to throw error from jsreport engine if it fails to render report (Rendering async report)? on Invalid Date]]></title><description><![CDATA[<p>Hi sir,</p>
<p>We are rendering our report asynchronously using j<strong>sreport-browser client</strong> package from our angular application.<br />
Since the report rendering is asynchronous  a url will be return like this,</p>
<p><strong>Async rendering in progress. Use Location response header to check the current status. Check it &lt;a href='<a href="http://localhost:5488/reports/624eadda935011c1881550db/status" rel="nofollow">http://localhost:5488/reports/624eadda935011c1881550db/status</a>'&gt;here&lt;/a&gt;</strong></p>
<p>And after that using <strong>afterRender hook</strong> we send a message to  our client side that report rendering is completed using  AWS websocket  and SNS).</p>
<p>But my doubt is, if report render fails at beforeRender hook itself then how to throw the error from beforeRender hook to  our client side ,because now jsreport-browser-client is returning only url like this,</p>
<p><strong>Async rendering in progress. Use Location response header to check the current status. Check it &lt;a href='<a href="http://localhost:5488/reports/624eadda935011c1881550db/status" rel="nofollow">http://localhost:5488/reports/624eadda935011c1881550db/status</a>'&gt;here&lt;/a&gt;</strong></p>
<p>Could you please suggest any solution?</p>
]]></description><link>https://forum.jsreport.net/post/11159</link><guid isPermaLink="true">https://forum.jsreport.net/post/11159</guid><dc:creator><![CDATA[reshmajacob93]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to throw error from jsreport engine if it fails to render report (Rendering async report)? on Wed, 28 Sep 2022 15:46:14 GMT]]></title><description><![CDATA[<ul>
<li>
<p>I have written sub function inside before render , suppose if there is any exception comes in any of those subfunction then how can i throw those error from jsreport to the client?<br />
Could you please show me one example which handle exception inside jsreport and throw those error to client.Actually the exception is shown in jsreport terminal while rendering renport from localhost (In AWS error is shown in cloudwatch log) but my issue is how to throw this error from jsreport log to client side?</p>
<p><strong>jsreport-browser-client</strong> package is we are using to render our report from angular application.</p>
</li>
</ul>
<p>Could you please suggest me any solution?</p>
]]></description><link>https://forum.jsreport.net/post/11177</link><guid isPermaLink="true">https://forum.jsreport.net/post/11177</guid><dc:creator><![CDATA[reshmajacob93]]></dc:creator><pubDate>Wed, 28 Sep 2022 15:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to throw error from jsreport engine if it fails to render report (Rendering async report)? on Invalid Date]]></title><description><![CDATA[<p>It's an async report, where the client can find out the state of the report only by checking the provided URL in the Location header. It is the same you see here:</p>
<pre><code>Async rendering in progress. Use Location response header to check the current status. Check it &lt;a href='http://localhost:5488/reports/624eadda935011c1881550db/status'&gt;here&lt;/a&gt;
</code></pre>
<p>If you http GET that URL, you get the status of the report. If the report fails, the response header contains Report-State:error. In this case, you can just read the response and get the error message.</p>
]]></description><link>https://forum.jsreport.net/post/11192</link><guid isPermaLink="true">https://forum.jsreport.net/post/11192</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to throw error from jsreport engine if it fails to render report (Rendering async report)? on Invalid Date]]></title><description><![CDATA[<p>Thank you sir</p>
]]></description><link>https://forum.jsreport.net/post/11202</link><guid isPermaLink="true">https://forum.jsreport.net/post/11202</guid><dc:creator><![CDATA[reshmajacob93]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>