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

806
5
12-07-2017 02:43 AM
SivaramKrishnan2
New Contributor III

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

0 Kudos
5 Replies
SivaramKrishnan2
New Contributor III

rscheitlin‌ Could you provide any solution for this ???

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sorry I don't have a solution to prevent login beside using a proxy with credentials stored like Panagiotis recommends.

0 Kudos
PanagiotisPapadopoulos
Esri Regular Contributor

try to use the service using the web adaptor path (not through 6443 port).

This may solve the error not the Sing In Pop Up.

SivaramKrishnan2
New Contributor III

and check the folder's security option also

0 Kudos
PanagiotisPapadopoulos
Esri Regular Contributor

I am try to reproduce this behavior and behaves the same on me.

An alternative is to use a proxy page instead of share to everyone the service.

This solution will helps you stop arise the Sing In Pop Up

0 Kudos