laptop and a wrench

Bug

No Login will be prompted while using a query URL requesting JSON output format for a secured map service at Rest end point, instead getting error 499, Unauthorized access.

Last Published: August 25, 2014 ArcGIS Server (.NET)
Bug ID Number NIM082833
SubmittedJuly 17, 2012
Last ModifiedApril 2, 2025
Applies toArcGIS Server (.NET)
Version found10.0
Operating SystemWindows OS
Operating System Version2008 R2 64 Bit
StatusWill Not Be Addressed

Additional Information

This is expected behavior. JSON format is intended for programmatic use and hence returns the token required (499) error message in JSON format.

Workaround

Change the Query URL output format to html.Example JSON output get query URL is <a href="http://csslystem-237/ArcGIS/rest/services/sample/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=1%3D1&time=&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=&f=pjson" target="_blank">http://csslystem-237/ArcGIS/rest/services/sample/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=1%3D1&time=&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=&f=pjson</a>Change the paramater value of 'f' as "html" instead of "pjson" and you will be prompted for user credentials. It will give you output in HTML format. Change the Output format to "JSON" and click Query (Get) Tab.

Steps to Reproduce

Bug ID: NIM082833

Software:

  • ArcGIS Server (.NET)

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options