AnsweredAssumed Answered

HotSpot Analysis: ArcGIS server service requires username password even it is not secured ?

Question asked by siva.lntgis on Dec 7, 2017
Latest reply on Dec 13, 2017 by rscheitlin

Hello,

I am trying to do HotSpot analysis, Where i have provided service for SpatialAnalysisTools(FindHotSpot) of ArcGIS Server’s System tool in ArcGIS JavaScript API 3.2’s application as REST service.

 

Below is the code:

function initializeHotSpotTool(){
showToolPanel();

//Define the default inputs for the Hot Spot widget
var hotSpotParams = {
id: "analysisTool",
analysisLayer: crime,
analysisGpServer:"https://GISServerName:6443/arcgis/rest/services/System/SpatialAnalysisTools/GPServer",
aggregationPolygonLayers: [tracts],
boundingPolygonLayers: [tracts],
showHelp: false,
showSelectAnalysisLayer: false,
showCredits: false,
map: map,
returnFeatureCollection: true
};

var hotSpots = new FindHotSpots(hotSpotParams, "hotSpotDiv");
hotSpots.startup(); ///Asking for Credentials

//If any errors occur reset the widget (Not Working...troubleshoot)
on(hotSpots, "job-fail", function(params){
resetTool("error");
});

Though the service is not secured (i.e. available for Everyone"), It is asking for credentials every time.Please find below image for the same.

Credentials

After entering the credentials, Its gives an error "TypeError: Cannot Read Property of 'self' of null" in browser console. Screenshot has been attached for the same.

 

Let me know what is the possible solution to overcome this one.

 

Thanks ,

Siva

Attachments

Outcomes