Select to view content in your preferred language

"NetworkError: 404 Not Found - http://tasks.arcgis.com/ArcGIS/rest/info?f=json"

1583
4
Jump to solution
11-20-2012 06:57 AM
JoanneMcGraw
Frequent Contributor
Does anyone know what could be causing this error message in the ESRI JSAPI?

"NetworkError: 404 Not Found - http://tasks.arcgis.com/ArcGIS/rest/info?f=json"

In my case, I believe it is appearing through the use of the esri.tasks.Locator when the addressToLocations function is called.

Is there something wrong with my configuration somewhere? Although the task seems to run successfully.

Cheers,
jtm
0 Kudos
1 Solution

Accepted Solutions
JeffJacobson
Frequent Contributor
I think that call is how the ArcGIS JS API determines if the ArcGIS Server supports CORS.
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_esri_request....

View solution in original post

0 Kudos
4 Replies
JeffJacobson
Frequent Contributor
I think that call is how the ArcGIS JS API determines if the ArcGIS Server supports CORS.
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_esri_request....
0 Kudos
JoanneMcGraw
Frequent Contributor
jacobsj,

I appreciate your response to my question. Thank you.

I have to say, though, that it seems odd one of the ESRI servers (tasks.arcgis.com) would have turned that support off (although certainly not impossible). Further, I tried making the same request to our ArcGIS Server, which is 10.1 and which the documentation suggests should have this support turned on by default. For that request, I get an HTTP error status of 500 (Internal Server Error).

Can anyone else comment on this question? If not, I'll just assume jacobsj is correct and ignore the error; but I'd prefer to be certain this is an acceptable (and ignorable) error. Are there others out there who are using the esri.task.Locator and getting the same error every time they invoke the address to Locations function?

Cheers
jtm
0 Kudos
JohnGravois
Deactivated User
jeff is correct.  right now some esri servers support CORS, and some don't.
0 Kudos
JoanneMcGraw
Frequent Contributor
Okay, thank you!

I'll ignore the error, then.

Cheers,
jtm
0 Kudos