AnsweredAssumed Answered

Image export request is returning internal server name

Question asked by bb1769 on Feb 26, 2015

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.29362758593748%2C44.9014…

 

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_mapc53d462af4f945f3b5bfc1658296baaa.png","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_map8f05ad2a5677408abdbe896ecdc18600.png","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?

Outcomes