Select to view content in your preferred language

REST query returns 404

4127
5
08-26-2012 03:57 PM
KirkKuykendall
Deactivated User
Hi -

The response to this indicates that the layer supports the Query capability ...
http://tiles.arcgis.com/tiles/FSrqtdqRXhw9e7ql/arcgis/rest/services/originalLandGrants/MapServer/0?f...

"hasLabels" : false,
  "capabilities" : "Map,Query,Data",
  "maxRecordCount" : 1000,
  "supportsStatistics" : true,
  "supportsAdvancedQueries" : true,
  "supportedQueryFormats" : "JSON, AMF"


However, I get a 404 when I run this query:
http://tiles.arcgis.com/tiles/FSrqtdqRXhw9e7ql/arcgis/rest/services/originalLandGrants/MapServer/0/q...

Am I doing something wrong?

Thanks, Kirk
Tags (2)
0 Kudos
5 Replies
KevinGooss
Regular Contributor
I get this back:

{
  "error" : {
    "code" : 499,
    "message" : "Token Required.",
    "details" : null
  }
}
0 Kudos
JonathanQuinn
Esri Notable Contributor
We get the 499 error because the hosted service is not shared with everyone.  If you'd like us to take a look at the service, can you share it with everyone?
0 Kudos
CharlesHarris
Emerging Contributor
Did anyone come up with an answer to this?  I'm having the same problem.

url = http://tiles.arcgis.com/tiles/X0gGoYpr56DPVUZD/arcgis/rest/services/Parks/MapServer

The query url looks like this - http://tiles.arcgis.com/tiles/X0gGoYpr56DPVUZD/arcgis/rest/services/Parks/MapServer/0/query?f=json&w...

Thanks,

Jeremy
0 Kudos
JonathanQuinn
Esri Notable Contributor
You're trying to query from a certain feature in the map service?  Hosted tiled map services don't support queries; you can only query in hosted feature services.
0 Kudos
CharlesHarris
Emerging Contributor
Perfect.  Thanks!
0 Kudos