<?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[Using async call, ping url give error until file exist]]></title><description><![CDATA[<p>Hi Jsreport team,</p>
<p>So I'm here to ask you some clarification regarding this choice.<br />
following the doc I achieved the wanted behaviour with async request, however I'm suprised that the &quot;ping&quot; request return a <code>500</code> error message rather than a <code>200</code> with &quot;not ready yet&quot; instead<br />
because basicaly the /status page is to tell you if the report is ready or not.</p>
<p>I really personnaly think it would be better to have a successful answer with just the content telling you the situation rather than having that <code>500</code>.</p>
<p>Also this could allow for better/easier error handling on client side if they do request a document that fail during rendering, as the error code could be used to point what went wrong instead.</p>
<p>What is your opinion on that matter? =)</p>
]]></description><link>https://forum.jsreport.net/topic/128/using-async-call-ping-url-give-error-until-file-exist</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 20:19:45 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/128.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Jun 2017 13:28:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Wed, 07 Jun 2017 13:30:27 GMT]]></title><description><![CDATA[<p>Hi Jsreport team,</p>
<p>So I'm here to ask you some clarification regarding this choice.<br />
following the doc I achieved the wanted behaviour with async request, however I'm suprised that the &quot;ping&quot; request return a <code>500</code> error message rather than a <code>200</code> with &quot;not ready yet&quot; instead<br />
because basicaly the /status page is to tell you if the report is ready or not.</p>
<p>I really personnaly think it would be better to have a successful answer with just the content telling you the situation rather than having that <code>500</code>.</p>
<p>Also this could allow for better/easier error handling on client side if they do request a document that fail during rendering, as the error code could be used to point what went wrong instead.</p>
<p>What is your opinion on that matter? =)</p>
]]></description><link>https://forum.jsreport.net/post/572</link><guid isPermaLink="true">https://forum.jsreport.net/post/572</guid><dc:creator><![CDATA[MI53RE19]]></dc:creator><pubDate>Wed, 07 Jun 2017 13:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>You talk about this feature?<br />
<a href="https://jsreport.net/learn/reports#async" rel="nofollow">https://jsreport.net/learn/reports#async</a></p>
<p>I don't see we would return &quot;not ready yet&quot; somewhere. We also return 500 if the report cannot be found at all, not when the rendering is not finished<br />
<a href="https://github.com/jsreport/jsreport-reports/blob/master/lib/reports.js#L88" rel="nofollow">https://github.com/jsreport/jsreport-reports/blob/master/lib/reports.js#L88</a></p>
]]></description><link>https://forum.jsreport.net/post/573</link><guid isPermaLink="true">https://forum.jsreport.net/post/573</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Thank for answering!</p>
<p>Sorry if I wasn't clear enough. But yes this is what I was talking about.</p>
<p>The thing is that it does throw a big error message into jsreport server console (which is probably normal then) with all the path details.<br />
but then I did had some time out error during those test (trying to do some heavy load run) and I couldn't catch nor see which report actually failled in the process, ans so the ping system could not stop from pinging despite the fact that the report generation had failled</p>
]]></description><link>https://forum.jsreport.net/post/574</link><guid isPermaLink="true">https://forum.jsreport.net/post/574</guid><dc:creator><![CDATA[MI53RE19]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Can you print the stack traces and messages? There shouldn't be errors in the normal situation. Only 200 and 201 status codes.</p>
]]></description><link>https://forum.jsreport.net/post/575</link><guid isPermaLink="true">https://forum.jsreport.net/post/575</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Sure here is the console screenshot and terminal:<br />
<img src="/uploads/files/1496848839656-firefox_2017-06-07_17-18-55-resized.png" alt="0_1496848788675_firefox_2017-06-07_17-18-55.png" class="img-responsive img-markdown" /></p>
<p><img src="/uploads/files/1496848847854-cmd_2017-06-07_17-17-03.png" alt="0_1496848798209_cmd_2017-06-07_17-17-03.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/577</link><guid isPermaLink="true">https://forum.jsreport.net/post/577</guid><dc:creator><![CDATA[MI53RE19]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Cannot replicate this so far, works for me normally without errors.</p>
<p>Does this happen for you also if you run just single report without parallel execution?<br />
Do you use default fs template store?<br />
Could you post here whole or critical part of log.txt?</p>
<p>The url served to you should always include the existing report id, because the item is created before the response is sent to you. I don't see a place for mistake in the code so far.</p>
]]></description><link>https://forum.jsreport.net/post/578</link><guid isPermaLink="true">https://forum.jsreport.net/post/578</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Hi!</p>
<p>Okay so I did try generate only one document and it worked, I even pushed to 5 at the time and it worked too, arround 10 and systematicaly I would get that error.</p>
<p>if by log file you mean the error.log, then this one stay empty after encountering such behaviour I'm affraid :( (did delete the file and restarted jsreport to make sure it would be accurate)<br />
if you ask for the reporter.log  then again, the error is not logged in it, it seems it show only on the console so far. Since it's a bit long (+1000 lines) could I send it to you by mail?</p>
<p>I do use the default template store also.</p>
<p>I'm starting wondering if this would be related to the fact that I didn't set a limit to the wkhtmltopdf workers and since I'm running (for now) test on a local machine with 'low' performance (compared to a proper dedicated server) could it be that the issue might be hardware related?</p>
<p>my machine spec are the following (if this can help you in the investigation):</p>
<p>Windows 7 Pro SP1 x64<br />
4Gb RAM<br />
AMD Phenom 9650 Quad-Core 2.30GHz</p>
]]></description><link>https://forum.jsreport.net/post/587</link><guid isPermaLink="true">https://forum.jsreport.net/post/587</guid><dc:creator><![CDATA[MI53RE19]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Thank you for further info. It  seems it is a concurrency issue. I'll have to try to run some kind of parallel test on it.<br />
Please email me the reporter.log to my email.</p>
<p>I'll try to find a time and look at this issue.</p>
]]></description><link>https://forum.jsreport.net/post/588</link><guid isPermaLink="true">https://forum.jsreport.net/post/588</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Thank you again for your valuable inputs. I found the problem was actually in our permissions handling.</p>
<p>Could you please apply this patch to your installation and try it again? The fix would be then part of the next jsreport release.<br />
<a href="https://github.com/jsreport/jsreport-reports/commit/c630630dd5bf6cc1806e88af22a76e6065f02096" rel="nofollow">https://github.com/jsreport/jsreport-reports/commit/c630630dd5bf6cc1806e88af22a76e6065f02096</a></p>
]]></description><link>https://forum.jsreport.net/post/589</link><guid isPermaLink="true">https://forum.jsreport.net/post/589</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>You're welcome!</p>
<p>I did apply the patch and it's working like a charm now (get only 200, 201 and sometime 304  codes)</p>
<p>(did the test with 200 reports requests in parallel)</p>
<p>A big thank you for your help and time!!</p>
]]></description><link>https://forum.jsreport.net/post/592</link><guid isPermaLink="true">https://forum.jsreport.net/post/592</guid><dc:creator><![CDATA[MI53RE19]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Using async call, ping url give error until file exist on Invalid Date]]></title><description><![CDATA[<p>Thank you for confirmation. You can expect the fix in the next jsreport hotfix.</p>
]]></description><link>https://forum.jsreport.net/post/593</link><guid isPermaLink="true">https://forum.jsreport.net/post/593</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>