<?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: run gp service via esri proxy in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/run-gp-service-via-esri-proxy/m-p/1004577#M20005</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75035"&gt;@wadsonmakari&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There are many things I see which can be troubleshooted. But first, is your ArcGIS Enterprise (10.6.1) a Federated or non-Federated?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavish&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 06:06:02 GMT</pubDate>
    <dc:creator>KavishGhime3</dc:creator>
    <dc:date>2020-11-25T06:06:02Z</dc:date>
    <item>
      <title>run gp service via esri proxy</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/run-gp-service-via-esri-proxy/m-p/1002608#M19984</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have extend web app builder and built a custom widget that calls a GP service which take a few parameters and returns a result as a string.&lt;/P&gt;&lt;P&gt;The GP service is secured in arcgis server 10.6.1 and requires a token to run. I have set a proxy on my web server and the proxy.config is set as follows for testing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ProxyConfig allowedReferers="*"
             mustMatch="true"
             &amp;gt;
    &amp;lt;serverUrls&amp;gt;
      &amp;lt;serverUrl url="https://machinename/arcgis/rest/services/Shared/pche/MapServer"
                 username="username"
                 password="password"
                 matchAll="true"/&amp;gt;
      &amp;lt;serverUrl url="https://machinename/arcgis/rest/services/Shared/pche/MapServer"
                 username="username"
                 password="password"
                 matchAll="true" /&amp;gt;
      &amp;lt;serverUrl url="https://machinename/arcgis/rest/services/Coll_GP/SnailTrailIssiNames/GPServer"
                 username="username"
                 password="password"
                 matchAll="true" /&amp;gt;
    &amp;lt;/serverUrls&amp;gt;
&amp;lt;/ProxyConfig&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my config.json I have the following&lt;/P&gt;&lt;P&gt;"httpProxy": {&lt;BR /&gt;"useProxy": true,&lt;BR /&gt;"url": "",&lt;BR /&gt;"rules":[{"urlPrefix":"https://machinename/arcgis/rest/services/Shared/pdac/MapServer",&lt;BR /&gt;"proxyUrl":"https://machinename/DotNet/proxy.ashx"},&lt;BR /&gt;{"urlPrefix":"https://machinename/arcgis/rest/services/Shared/pche/MapServer",&lt;BR /&gt;"proxyUrl":"https://machinename/DotNet/proxy.ashx"},&lt;BR /&gt;{"urlPrefix":"https://machinename/arcgis/rest/services/Coll_GP/SnailTrailIssiNames/GPServer",&lt;BR /&gt;"proxyUrl":"https://machinename/DotNet/proxy.ashx"}]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The 2 map services are both secured as well and I am access them via the proxy without any problems. However I am having problems calling the GP service via the proxy. The request returns the following&lt;/P&gt;&lt;P&gt;RequestError: Unable to load&amp;nbsp;https://machinename/DotNet/proxy.ashx?"https://machinename/arcgis/rest/services/Coll_GP/SnailTrailIssiNames/GPServer/SnailTrailIssiNames/execute f=json?[list of parameters with values] Status 500&lt;/P&gt;&lt;P&gt;The GP service request is going through the proxy as expected but I am not sure why it is not working when the secure map layers are loaded without any issues? If I do not go via the proxy I get challenged for username and password and upon entering the credentials my request is processed as expected.&lt;/P&gt;&lt;P&gt;Any idea why the GP service is not working via the proxy? Is there something wrong with my config? Any pointers much appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 17:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/run-gp-service-via-esri-proxy/m-p/1002608#M19984</guid>
      <dc:creator>wadsonmakari</dc:creator>
      <dc:date>2020-11-18T17:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: run gp service via esri proxy</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/run-gp-service-via-esri-proxy/m-p/1004577#M20005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75035"&gt;@wadsonmakari&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There are many things I see which can be troubleshooted. But first, is your ArcGIS Enterprise (10.6.1) a Federated or non-Federated?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavish&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 06:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/run-gp-service-via-esri-proxy/m-p/1004577#M20005</guid>
      <dc:creator>KavishGhime3</dc:creator>
      <dc:date>2020-11-25T06:06:02Z</dc:date>
    </item>
  </channel>
</rss>

