Using proxy with routing - getting a token not working

668
0
10-24-2014 04:49 AM
PeterBaldwin
New Contributor II

Hello,

I'm trying to get the ArcGIS routing service to work through the proxy from a Javascript API app. In the proxy config I have the following setup:

<serverUrl url="http://route.arcgis.com" matchAll="true"

          clientId="xxx"

          clientSecret="xxx"

          rateLimit="50"

          rateLimitPeriod="10"

          ></serverUrl>

And I've setup the log file for reporting on proxy connections. In the log file I see:

w3wp.exe Information: 0 : 2014-10-24 12:29:01 http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?f=json&returnDir...

w3wp.exe Information: 0 : 2014-10-24 12:29:03 Matching credentials found in configuration file. OAuth 2.0 mode: True

w3wp.exe Information: 0 : 2014-10-24 12:29:03 Service is secured by https://www.arcgis.com/sharing/oauth2/: getting new token...

and then it stops. The browser calling it returns a runtime error. If I manually call the oauth2 page with the correct details from the server running the proxy then it works fine and returns a token okay.

Please could someone give me any advice on how I can further debug this?

Thank you,

Peter.

0 Kudos
0 Replies