<?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: What's the URL to the analysis service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237094#M22080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;You can use the GP Service from ArcGIS Online&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2FPlanRoutes" rel="nofollow" target="_blank"&gt;http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/PlanRoutes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;but this require organization account.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;In order to access the Analysis service from your custom application use proxy page (&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html" title="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html"&gt;Using the proxy | Guide | ArcGIS API for JavaScript&lt;/A&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;in order to understand how PlanRoute is working use the Analysis tool Plan Routes from ArcGIS Online&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" height="360" src="https://community.esri.com/legacyfs/online/198698_Capture.PNG" style="width: 441px; height: 359.913px;" width="441" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;execute task and inspect the submitJob &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;IMG alt="Capture.PNG" class="image-2 jive-image" height="400" src="https://community.esri.com/legacyfs/online/198699_Capture.PNG" style="height: 400px; width: 562.025px;" width="562" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2016 13:38:35 GMT</pubDate>
    <dc:creator>PanagiotisPapadopoulos</dc:creator>
    <dc:date>2016-05-06T13:38:35Z</dc:date>
    <item>
      <title>What's the URL to the analysis service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237093#M22079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I want to use the PlanRoutes API (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Fplanroutes-amd.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/planroutes-amd.html&lt;/A&gt;&lt;SPAN&gt;), but I don't know what's the analysisGpServer property should be set. At this moment, I only have a trial account applied from esri.com and there's no local server for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My version of arcgis js api is 3.16.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 12:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237093#M22079</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2016-05-06T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: What's the URL to the analysis service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237094#M22080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;You can use the GP Service from ArcGIS Online&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2FPlanRoutes" rel="nofollow" target="_blank"&gt;http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/PlanRoutes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;but this require organization account.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;In order to access the Analysis service from your custom application use proxy page (&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html" title="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html"&gt;Using the proxy | Guide | ArcGIS API for JavaScript&lt;/A&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;in order to understand how PlanRoute is working use the Analysis tool Plan Routes from ArcGIS Online&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" height="360" src="https://community.esri.com/legacyfs/online/198698_Capture.PNG" style="width: 441px; height: 359.913px;" width="441" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;execute task and inspect the submitJob &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;IMG alt="Capture.PNG" class="image-2 jive-image" height="400" src="https://community.esri.com/legacyfs/online/198699_Capture.PNG" style="height: 400px; width: 562.025px;" width="562" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 13:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237094#M22080</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-05-06T13:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: What's the URL to the analysis service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237095#M22081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Panagiotis：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The attach is my scripts. My goal is to execute PlanRoutes Analysis using javascript API. At this moment, I got the error: 1) You do not have permissions to use this resource. 2) Token Required.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; And my proxy.config has set the serverUrl of &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com" rel="nofollow" target="_blank"&gt;http://js.arcgis.com&lt;/A&gt;&lt;SPAN&gt; with my clientId and clientSecret got from arcgis online for trail user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How to do it next?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2016 01:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237095#M22081</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2016-05-07T01:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: What's the URL to the analysis service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237096#M22082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;General the token and analysis url parameters are more complex on this case to be retrieved.&lt;/P&gt;&lt;P&gt;you have to follow the steps here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/programmatically-accessing-analysis-services.htm" title="https://developers.arcgis.com/rest/analysis/api-reference/programmatically-accessing-analysis-services.htm"&gt;Programmatically accessing analysis services—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to take the token and the analysis url for the PlanRoute task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then see here for more details about the PlanRoute task&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/plan-routes.htm#GUID-FCA0EDCF-C8C3-448B-8CEF-21ED7C065262" title="https://developers.arcgis.com/rest/analysis/api-reference/plan-routes.htm#GUID-FCA0EDCF-C8C3-448B-8CEF-21ED7C065262"&gt;Plan Routes—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case now at the beginning add this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;esriConfig.defaults.io.corsEnabledServers.push("analysis1.arcgis.com");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;esriConfig.defaults.io.corsEnabledServers.push("www.arcgis.com");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;urlUtils.addProxyRule({&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&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%2Fanalysis1.arcgis.com" rel="nofollow" target="_blank"&gt;https://analysis1.arcgis.com&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&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%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;machine&amp;gt;/proxy/proxy.ashx"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;later on your code when you set the analysis service url:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; analysisTools = new PlanRoutes({&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; // startLayer: "",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; // endLayer: "",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; analysisGpServer: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2FPlanRoutes%2FsubmitJob" rel="nofollow" target="_blank"&gt;https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/PlanRoutes/submitJob&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; portalUrl: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2F" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; FeatureLayers: [schoolLayer, stopLayer],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; returnToStart: false,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; showChooseExtent: false,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the proxy page I am using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices" rel="nofollow" target="_blank"&gt;https://analysis1.arcgis.com/arcgis/rest/services&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; accessToken="xxxxxxxxxxxxxxxx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to retrieve the token for your portal use this url&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/sharing/generateToken?f=json&amp;amp;request=gettoken&amp;amp;username=pit_papa&amp;amp;password=matrix54&amp;amp;Referer=MyToken" title="https://www.arcgis.com/sharing/generateToken?f=json&amp;amp;request=gettoken&amp;amp;username=pit_papa&amp;amp;password=matrix54&amp;amp;Referer=MyToken"&gt;https://www.arcgis.com/sharing/generateToken?f=json&amp;amp;request=gettoken&amp;amp;username=&amp;lt;username&amp;gt;&amp;amp;password=&amp;lt;password&amp;gt;&amp;amp;Referer=MyToken&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you also can use the clientId and the clientSecret in order to generate the token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; by doing that the PlanRoutes submit request is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/199072_Capture.PNG" style="width: 620px; height: 181px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that see the PlanRoutes settings &lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/plan-routes.htm#GUID-FCA0EDCF-C8C3-448B-8CEF-21ED7C065262" title="https://developers.arcgis.com/rest/analysis/api-reference/plan-routes.htm#GUID-FCA0EDCF-C8C3-448B-8CEF-21ED7C065262"&gt;Plan Routes—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; in order to make it return results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/199100_Capture.PNG" style="width: 620px; height: 147px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 09:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237096#M22082</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-05-09T09:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: What's the URL to the analysis service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237097#M22083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Panagiotis：&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I've followed your suggestion and the response of &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy%2FDotNet%2Fproxy.ashx%3Fhttps%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2FPlanRoutes%2FsubmitJob%3Ff%3Djson" target="_blank"&gt;http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/PlanRoutes/submitJob?f=json&lt;/A&gt;&lt;SPAN&gt; returns {"jobId":"jb787c736ed0e4c3a8f5d435a10b6a456","jobStatus":"esriJobSubmitted","results":{},"inputs":{},"messages":[]}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; However, when I calling the javascript api of PlanRoutes (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjsapi%2Fplanroutes-amd.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/planroutes-amd.html&lt;/A&gt;&lt;SPAN&gt;), the console got the error of "dojo.io.script error Error: Token Required".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="20160510-1035.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/199104_20160510-1035.png" style="width: 620px; height: 336px;" /&gt;&lt;/P&gt;&lt;P&gt;The attachement is my html, and the proxy.config has set the urls used.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Finfo" target="_blank"&gt;https://analysis1.arcgis.com/arcgis/rest/info&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; accessToken = "XXXXXXXXXX"
&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;

&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer" target="_blank"&gt;https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; accessToken = "XXXXXXXXXX"
&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = "true" /&amp;gt;

&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com" target="_blank"&gt;http://js.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp; accessToken = "XXXXXXXXXX"
&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = "true" /&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/10754" target="_blank"&gt;Panagiotis Papadopoulos&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237097#M22083</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2021-12-11T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: What's the URL to the analysis service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237098#M22084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;from the image I can see that the token error arise for the logistics.arcgis.com url and not for the analysis1.arcgis.com.&lt;/P&gt;&lt;P&gt;Maybe the PlanRoutes using more than one analysis services.&lt;/P&gt;&lt;P&gt;Try to set on the proxy page this url also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 07:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-url-to-the-analysis-service/m-p/237098#M22084</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-05-10T07:06:19Z</dc:date>
    </item>
  </channel>
</rss>

