Image export request is returning internal server name

2832
0
02-26-2015 11:14 AM
BryanBaker
Occasional Contributor

A user on our website is getting an error when their browser attempts to draw the map. The error only occurs when they access the website from their organizational network. This is using the JavaScript API, but they captured their browser session with Fiddler and it's clear the problem is with the server REST request/response. The request looks something like:

http://myserver.mydomain.com/arcgis/rest/services/mymapservice/MapServer/export?f=json&bbox=-76.2936...

The response as recorded by Fiddler looks like this - note that the server name changes to our internal server name, not the fully qualified name as in the request:

ags_jsonp.ags_jsonp_25_727351({"href":"http://internalservername.private:6080/arcgis/rest/directories/arcgisoutput/mymapservice/_ags_mapc53...","width":382,"height":402,"extent":{"xmin":-8492982.9849871229,"ymin":5606023.5650927974,"xmax":-8376768.2792958319,"ymax":5728322.810349077,"spatialReference":{"wkid":102113,"latestWkid":3785}},"scale":1149831.9488333722});

I can make the exact same request, using Fiddler's Composer utility, including the same request headers. I get a response that has the fully qualified name as in the request:

ags_jsonp.ags_jsonp_25_727351({"href":"http://myserver.mydomain.com/arcgis/rest/directories/arcgisoutput/mymapservice/_ags_map8f05ad2a56774...","width":382,"height":402,"extent":{"xmin":-8492982.9849871229,"ymin":5606023.5650927974,"xmax":-8376768.2792958319,"ymax":5728322.810349077,"spatialReference":{"wkid":102113,"latestWkid":3785}},"scale":1149831.9488333722});

We need to resolve the issue as this is an important client. The server is running IIS with the requests going through the Web Adaptor. Any ideas as to why the ArcGIS server should respond with a URL that has the internal name?

0 Kudos
0 Replies