<?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 Directions Widget .NET Proxy setup problem in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-net-proxy-setup-problem/m-p/755925#M69912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been attempting to get the javascript 3.8 api Directions Widget to use .NET proxy for logging in to our "Paid" subscription and have not had any luck.&amp;nbsp; The example at:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html"&gt;https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html&lt;/A&gt;&lt;SPAN&gt; talks about &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This sample uses a helper method, added at v3.4, that defines a proxy for a set of resources. In this example all requests to route.arcgis.com are routed to the specified proxy url.&lt;BR /&gt;&lt;BR /&gt;esri.addProxyRule({&amp;nbsp;&amp;nbsp; urlPrefix: "route.arcgis.com",&amp;nbsp;&amp;nbsp; proxyUrl: "/sproxy" });&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For demonstration purposes this sample uses a proxy that has been setup to use app logins and OAuth2&amp;nbsp; so you aren't required to log-in with an ArcGIS Online organizational subscription to run the sample. &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I know that someone somewhere must have been able to get this to work.&amp;nbsp; Anyone know how they are doing it?&amp;nbsp; I have tried everything....&amp;nbsp; My current Proxy was downloaded from GitHub with a date of 3/17/2014.&amp;nbsp; My current proxy.config file looks like&amp;nbsp; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;ProxyConfig allowedReferers="*"&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; mustMatch="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;BR /&gt; &amp;lt;serverUrl url="http://gis.fwb.org/"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://route.arcgis.com"&lt;BR /&gt;&amp;nbsp; clientId="pertinent ID is here"&lt;BR /&gt;&amp;nbsp; clientSecret="pertinent Secret is here"&lt;BR /&gt;&amp;nbsp; oauth2Endpoint="https://www.arcgis.com/sharing/oauth2/token"&lt;BR /&gt;&amp;nbsp; rateLimit=600&lt;BR /&gt;&amp;nbsp; rateLimitPeriod=600&lt;BR /&gt;&amp;nbsp; matchAll="true"&amp;gt;&lt;BR /&gt; &amp;lt;/serverUrl&amp;gt;&lt;BR /&gt; &amp;lt;serverUrl url="http://services.arcgisonline.com"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clientId="pertinent ID is here"&lt;BR /&gt;&amp;nbsp; clientSecret="pertinent Secret is here"&lt;BR /&gt;&amp;nbsp; oauth2Endpoint="https://www.arcgis.com/sharing/oauth2/token"&lt;BR /&gt;&amp;nbsp; rateLimit=600&lt;BR /&gt;&amp;nbsp; rateLimitPeriod=600&lt;BR /&gt;&amp;nbsp; matchAll="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;BR /&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I open my web page, the Sign In dialog appears for the Directions Widget.&amp;nbsp; If I cancel the Sign In and let the web page finish loading, then attempt to get Route Directions, I am given a 500 Internal Server Error&amp;nbsp; with a message '600' unexpected token.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any and all help will be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 12:36:25 GMT</pubDate>
    <dc:creator>LuciHawkins</dc:creator>
    <dc:date>2014-03-17T12:36:25Z</dc:date>
    <item>
      <title>Directions Widget .NET Proxy setup problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-net-proxy-setup-problem/m-p/755925#M69912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been attempting to get the javascript 3.8 api Directions Widget to use .NET proxy for logging in to our "Paid" subscription and have not had any luck.&amp;nbsp; The example at:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html"&gt;https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html&lt;/A&gt;&lt;SPAN&gt; talks about &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This sample uses a helper method, added at v3.4, that defines a proxy for a set of resources. In this example all requests to route.arcgis.com are routed to the specified proxy url.&lt;BR /&gt;&lt;BR /&gt;esri.addProxyRule({&amp;nbsp;&amp;nbsp; urlPrefix: "route.arcgis.com",&amp;nbsp;&amp;nbsp; proxyUrl: "/sproxy" });&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For demonstration purposes this sample uses a proxy that has been setup to use app logins and OAuth2&amp;nbsp; so you aren't required to log-in with an ArcGIS Online organizational subscription to run the sample. &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I know that someone somewhere must have been able to get this to work.&amp;nbsp; Anyone know how they are doing it?&amp;nbsp; I have tried everything....&amp;nbsp; My current Proxy was downloaded from GitHub with a date of 3/17/2014.&amp;nbsp; My current proxy.config file looks like&amp;nbsp; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;ProxyConfig allowedReferers="*"&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; mustMatch="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;BR /&gt; &amp;lt;serverUrl url="http://gis.fwb.org/"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://route.arcgis.com"&lt;BR /&gt;&amp;nbsp; clientId="pertinent ID is here"&lt;BR /&gt;&amp;nbsp; clientSecret="pertinent Secret is here"&lt;BR /&gt;&amp;nbsp; oauth2Endpoint="https://www.arcgis.com/sharing/oauth2/token"&lt;BR /&gt;&amp;nbsp; rateLimit=600&lt;BR /&gt;&amp;nbsp; rateLimitPeriod=600&lt;BR /&gt;&amp;nbsp; matchAll="true"&amp;gt;&lt;BR /&gt; &amp;lt;/serverUrl&amp;gt;&lt;BR /&gt; &amp;lt;serverUrl url="http://services.arcgisonline.com"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clientId="pertinent ID is here"&lt;BR /&gt;&amp;nbsp; clientSecret="pertinent Secret is here"&lt;BR /&gt;&amp;nbsp; oauth2Endpoint="https://www.arcgis.com/sharing/oauth2/token"&lt;BR /&gt;&amp;nbsp; rateLimit=600&lt;BR /&gt;&amp;nbsp; rateLimitPeriod=600&lt;BR /&gt;&amp;nbsp; matchAll="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;BR /&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I open my web page, the Sign In dialog appears for the Directions Widget.&amp;nbsp; If I cancel the Sign In and let the web page finish loading, then attempt to get Route Directions, I am given a 500 Internal Server Error&amp;nbsp; with a message '600' unexpected token.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any and all help will be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 12:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-net-proxy-setup-problem/m-p/755925#M69912</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2014-03-17T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget .NET Proxy setup problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-net-proxy-setup-problem/m-p/755926#M69913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Luci,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hard to say what the trouble is, but it sounds like the proxy may not be configured correctly. Have you confirmed that the proxy is healthy by testing a valid URL in the browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example: &lt;/SPAN&gt;&lt;A href="http://pathtoproxy/proxy.ashx?http://www.esri.com"&gt;http://pathtoproxy/proxy.ashx?http://www.esri.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other things to consider:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If you watch the web traffic when the application loads, do you see successful calls to the proxy page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Is the path to the proxy page correct in the JavaScript code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 15:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-net-proxy-setup-problem/m-p/755926#M69913</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-03-17T15:01:08Z</dc:date>
    </item>
  </channel>
</rss>

