<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proxy not being used correctly when service layer made visible  ie MapServer/export? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174599#M4846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Http and Https requests are viewed as two different urls. So you have a rule for https. Is the request that is failing using http or https?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 17:17:42 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-09-11T17:17:42Z</dc:date>
    <item>
      <title>Proxy not being used correctly when service layer made visible  ie MapServer/export?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174598#M4845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a WAB 2.7 app (self deployed) that accesses a webmap with a secured arcgis server token service.&amp;nbsp; The webamp will load correctly but the secure layer won't draw.&amp;nbsp; Watching the network traffic, this makes sense b/c the 'export' image request to the service is NOT routed via the proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setup and things I can confirm:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The proxy is correctly setup and configured:&lt;OL&gt;&lt;LI&gt;loclahost/proxy.ashx?ping returns the expected json response&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;localhost/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmyserver%2Fmyservice%2F" rel="nofollow" target="_blank"&gt;https://myserver/myservice/&lt;/A&gt;&lt;SPAN&gt;.... all return the correct response when I manually copy/paste the requests to the browser bar&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;The WAB app config file has at least some of the config correct.&amp;nbsp; I'm using the "rules" section for the specific secure service url.&amp;nbsp; Without the rule for the specific secure service, the login/token prompt is displayed.&amp;nbsp; With the rule in place the login dialog does NOT appear and watching the network traffic, I see a bunch of /info?=json requests for the service routed via the proxy. Config:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"httpProxy": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"alwaysUseProxy": false,&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy.ashx" rel="nofollow" target="_blank"&gt;http://localhost/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"useProxy": true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"rules": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"urlPrefix": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstreams.whitestar.com%2Farcgis%2Frest%2Fservices" rel="nofollow" target="_blank"&gt;https://streams.whitestar.com/arcgis/rest/services&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"proxyUrl": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy.ashx" rel="nofollow" target="_blank"&gt;http://localhost/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Network details&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The WAB correctly uses the proxy when the webmap is loading and getting service/layer info.&amp;nbsp; These request all return 200 success and the JSON is visible in the response preview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;locallhost/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstreams.whitestar.com%2Farcgis%2Frest%2Fservices%2Fomnitrax%2FWS_Parcels_OMNITRAX%2FMapServer%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://streams.whitestar.com/arcgis/rest/services/omnitrax/WS_Parcels_OMNITRAX/MapServer?f=json&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;locallhost/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstreams.whitestar.com%2Farcgis%2Frest%2Fservices%2Fomnitrax%2FWS_Parcels_OMNITRAX%2FMapServer%2Flayers%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://streams.whitestar.com/arcgis/rest/services/omnitrax/WS_Parcels_OMNITRAX/MapServer/layers?f=json&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;locallhost/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstreams.whitestar.com%2Farcgis%2Frest%2Fservices%2Fomnitrax%2FWS_Parcels_OMNITRAX%2FMapServer%2F0%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://streams.whitestar.com/arcgis/rest/services/omnitrax/WS_Parcels_OMNITRAX/MapServer/0?f=json&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;locallhost/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstreams.whitestar.com%2Farcgis%2Frest%2Fservices%2Fomnitrax%2FWS_Parcels_OMNITRAX%2FMapServer%2F1%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://streams.whitestar.com/arcgis/rest/services/omnitrax/WS_Parcels_OMNITRAX/MapServer/1?f=json&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;locallhost/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstreams.whitestar.com%2Farcgis%2Frest%2Fservices%2Fomnitrax%2FWS_Parcels_OMNITRAX%2FMapServer%2F2%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://streams.whitestar.com/arcgis/rest/services/omnitrax/WS_Parcels_OMNITRAX/MapServer/2?f=json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The the layer list checkbox is clicked on, the following requests to export function are not routed thru the proxy and return the "token required" json instead of an image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;streams.whitestar.com/arcgis/rest/services/omnitrax/WS_Parcels_OMNITRAX/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png32&amp;amp;layers=show%3A0%2C1%2C2&amp;amp;bbox=-15859205.762025328%2C3291557.064882444%2C-6735682.065909116%2C7826413.078984177&amp;amp;bboxSR=102100&amp;amp;imageSR=102100&amp;amp;size=1865%2C927&amp;amp;f=image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am missing?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174598#M4845</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2018-09-11T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy not being used correctly when service layer made visible  ie MapServer/export?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174599#M4846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Http and Https requests are viewed as two different urls. So you have a rule for https. Is the request that is failing using http or https?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174599#M4846</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-11T17:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy not being used correctly when service layer made visible  ie MapServer/export?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174600#M4847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert:&lt;/P&gt;&lt;P&gt;Both the "info" set and "export" set are HTTPS.&amp;nbsp; I'll add an HTTP rule and see of that changes anything...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174600#M4847</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2018-09-11T17:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy not being used correctly when service layer made visible  ie MapServer/export?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174601#M4848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding the second HTTP rule doesn't help but try a few other things along those lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Setting all URLs (portal, proxy services, etc) to HTTPS --- still broke&lt;/P&gt;&lt;P&gt;2. Setting all URLs (portal, proxy services, etc) to HTTP --- WORKS!!! This is a pain b/c you have to open you're portal on HTTP to add the service as HTTP to the web map.&lt;/P&gt;&lt;P&gt;3. Leaving everything as it was mixed HTTPS but adding the service to the webmap as HTTP and setting the rule for the service as HTTP --- Works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So somehow the "matching" function for the HTTPS export request is working correctly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 18:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174601#M4848</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2018-09-11T18:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy not being used correctly when service layer made visible  ie MapServer/export?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174602#M4849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well.... long story short... if you run into this issue upgrading the jsapi version in the WAB (env.js) to 3.25 appears to fix it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;long story longer:&lt;/P&gt;&lt;P&gt;I created a few items to isolate out the various candidates&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a webmap with only the secure service layer&lt;/LI&gt;&lt;LI&gt;a stock app template via the arcgis.com builder (v 2.9)&lt;/LI&gt;&lt;LI&gt;a stock app template via a clean install of the WAB Developer version 2.8.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying various combinations, I found:&lt;/P&gt;&lt;P&gt;1. No issues either webmap (single secure service and multiple service)&amp;nbsp; using 2.9 version&lt;/P&gt;&lt;P&gt;2. No issues using the single secure service using the 2.8 version&lt;/P&gt;&lt;P&gt;3. Issue repos with the multiple service webmap and the stock 2.8 WAB version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obvious difference in the 3.25 version of the javascript api and switching up to the new version seems to be resolving the issue.&amp;nbsp; Going one step further, I took the 3.x 'Create webmap from id' sample, added in the proxy settings and tried both the single and multiple webmaps with both the 3.24 and 3.25 versions.&amp;nbsp; I get the same results: both webmaps work with 3.25, only the single works with 3.24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it appears to be something in 3.24 - not WAB - with webmaps that have both secure and non-secure services running on HTTPS.&amp;nbsp; Time for a beer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 23:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/proxy-not-being-used-correctly-when-service-layer/m-p/174602#M4849</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2018-09-11T23:10:15Z</dc:date>
    </item>
  </channel>
</rss>

