laptop and a wrench

Bogue

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.

Dernière publication: August 25, 2014 ArcGIS Server (.NET)
Numéro d’ID de bogue NIM082833
EnvoiJuly 17, 2012
Dernière modificationApril 2, 2025
S’applique àArcGIS Server (.NET)
Version trouvée10.0
Système d’exploitationWindows OS
Version du système d’exploitation2008 R2 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: NIM082833

Logiciel:

  • ArcGIS Server (.NET)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement