<?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[Report API -  async option not returning appPath url.]]></title><description><![CDATA[<p>I am trying to use the &quot;options&quot;: {&quot;reports&quot;: { &quot;async&quot;: true }}.   This does run and I get back an URL.  The issue I am having is the URL does not adhere to the string that I have setup in my appPath configuration.</p>
<p>example:</p>
<p>I post an API request <a href="http://xxx.domain.com/reportserver%5Capi%5Creport" rel="nofollow">xxx.domain.com/reportserver\api\report</a> with the body of  {&quot;reports&quot;: { &quot;async&quot;: true }}.</p>
<p>The URL I get back is <a href="https://xxx.azurewebsites.net/reportserver/reports/SOMEid/status" rel="nofollow">https://xxx.azurewebsites.net/reportserver/reports/SOMEid/status</a>'.  This is the url to the web app service the docker container is hosted on.</p>
<p>I thought I should get back a URL of <a href="http://xxx.domain.com/reportserver/reports/SOMEid/status" rel="nofollow">xxx.domain.com/reportserver/reports/SOMEid/status</a>.</p>
<p>Should I be getting back the report appPath in the return URL?</p>
<p>Thanks<br />
Wade</p>
]]></description><link>https://forum.jsreport.net/topic/3130/report-api-async-option-not-returning-apppath-url</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 02:02:12 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3130.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Mar 2024 14:50:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Report API -  async option not returning appPath url. on Invalid Date]]></title><description><![CDATA[<p>I am trying to use the &quot;options&quot;: {&quot;reports&quot;: { &quot;async&quot;: true }}.   This does run and I get back an URL.  The issue I am having is the URL does not adhere to the string that I have setup in my appPath configuration.</p>
<p>example:</p>
<p>I post an API request <a href="http://xxx.domain.com/reportserver%5Capi%5Creport" rel="nofollow">xxx.domain.com/reportserver\api\report</a> with the body of  {&quot;reports&quot;: { &quot;async&quot;: true }}.</p>
<p>The URL I get back is <a href="https://xxx.azurewebsites.net/reportserver/reports/SOMEid/status" rel="nofollow">https://xxx.azurewebsites.net/reportserver/reports/SOMEid/status</a>'.  This is the url to the web app service the docker container is hosted on.</p>
<p>I thought I should get back a URL of <a href="http://xxx.domain.com/reportserver/reports/SOMEid/status" rel="nofollow">xxx.domain.com/reportserver/reports/SOMEid/status</a>.</p>
<p>Should I be getting back the report appPath in the return URL?</p>
<p>Thanks<br />
Wade</p>
]]></description><link>https://forum.jsreport.net/post/13406</link><guid isPermaLink="true">https://forum.jsreport.net/post/13406</guid><dc:creator><![CDATA[WadeBenz]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Report API -  async option not returning appPath url. on Invalid Date]]></title><description><![CDATA[<p>The <code>appPath</code> is the app subpath which is used to calculate the URL returned in the async report output <code>Location</code> header.</p>
<p>When I have in <code>appPath</code> config &quot;/myreports&quot; and post to <code>localhost</code>. The <code>Location</code> header will be <code>http://localhost:5488/myreports/reports/oU0NKlzyrI3fkXdv/status</code></p>
<p><img src="/uploads/files/1711440539572-upload-05ee2d9a-6da8-443d-a00e-b4d65935f896-resized.png" alt="0_1711440538643_upload-05ee2d9a-6da8-443d-a00e-b4d65935f896" class="img-responsive img-markdown" /></p>
<p>Doesn't it work for you like that?</p>
<p>The domain in the link is calculated from the request headers also based on the <a href="https://en.wikipedia.org/wiki/X-Forwarded-For" rel="nofollow">X-Forward-For</a> headers which are typically added by load balancers/application gateways or application servers.<br />
If you post to the <code>yourdomain.com</code> but get <code>xxx.azurewebsite.net</code> back in the link, than it could be something wrong with the headers that reach the jsreport.</p>
]]></description><link>https://forum.jsreport.net/post/13409</link><guid isPermaLink="true">https://forum.jsreport.net/post/13409</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Report API -  async option not returning appPath url. on Tue, 26 Mar 2024 16:48:46 GMT]]></title><description><![CDATA[<p>This does not seem to be the way it is working for me.  This looks like it works for you because your example you are not changing the domain.  Event though I am setting the headers at both the gateway or on the post it does not seem like the code is using them for generating the location.</p>
<p>Setup.</p>
<ol>
<li>docker running on web app.  url: <a href="https://myserver.azurewebsites.net" rel="nofollow">https://myserver.azurewebsites.net</a></li>
<li>Application gateway.   This does a rewrite rule to forward this request from <a href="http://xxx.domain.com/reportserver/jsr" rel="nofollow">xxx.domain.com/reportserver/jsr</a> to docker app (line 1).   I did add a X-Forwarded-For hearder on gateway for domain(did not help) screenshot below.</li>
<li>appPath to be /reportserver/jsr.   This fixes the pathing in the browser and directs request to the correct url because of application gateway.</li>
</ol>
<p>Screen shot from jseport showing correct url for the api to post requests to.<br />
<img src="/uploads/files/1711457913413-upload-f1395b0e-33d5-40a8-90d4-2577d4f63c67-resized.png" alt="0_1711457934613_upload-f1395b0e-33d5-40a8-90d4-2577d4f63c67" class="img-responsive img-markdown" /></p>
<p>This is a screen shot from postman posting to the url.  As you can see the location has the azure web app url along with the appPath.<br />
<img src="/uploads/files/1711459911556-upload-ce7d1f5f-9156-4411-aef2-310a2ce2fbb2-resized.png" alt="0_1711459932424_upload-ce7d1f5f-9156-4411-aef2-310a2ce2fbb2" class="img-responsive img-markdown" /></p>
<p>app gateway rewrite rule for X-Forwarded-For<br />
<img src="/uploads/files/1711460721018-upload-8cbe4839-3e23-47c1-b09b-533229663505-resized.png" alt="0_1711460742712_upload-8cbe4839-3e23-47c1-b09b-533229663505" class="img-responsive img-markdown" /></p>
<p>Additional attempt to apps the X-Forwarded-For and X-Forwarded-Host headers in the postman request.<br />
<img src="/uploads/files/1711471497278-upload-3cdd7e54-bd58-4c06-b9f5-b99342d7cc2e-resized.png" alt="0_1711471519765_upload-3cdd7e54-bd58-4c06-b9f5-b99342d7cc2e" class="img-responsive img-markdown" /></p>
<p>Is there a way to see if the headers are making it to jsreport?  Also is there a way to turn on a verbose logging to see what the app log is doing?</p>
]]></description><link>https://forum.jsreport.net/post/13412</link><guid isPermaLink="true">https://forum.jsreport.net/post/13412</guid><dc:creator><![CDATA[WadeBenz]]></dc:creator><pubDate>Tue, 26 Mar 2024 16:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to Report API -  async option not returning appPath url. on Tue, 26 Mar 2024 16:52:07 GMT]]></title><description><![CDATA[<p>Yes, the problem is the most likely misconfiguration of your application gateway. I wasn't clear with the <code>X-Forwarded-For</code>. There are several headers every reverse proxy needs to send so the backend app can work properly.<br />
<a href="https://requestly.com/blog/what-are-x-forwarded-headers-and-why-it-is-used/" rel="nofollow">https://requestly.com/blog/what-are-x-forwarded-headers-and-why-it-is-used/</a></p>
<p>The <code>X-Forwarded-For</code> should contain the client IP and the <code>X-Forwarded-Host</code> the original host. The correct <code>X-Forwarded-Host</code> should primarily help.</p>
]]></description><link>https://forum.jsreport.net/post/13414</link><guid isPermaLink="true">https://forum.jsreport.net/post/13414</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Tue, 26 Mar 2024 16:52:07 GMT</pubDate></item></channel></rss>