Hy,
Do you know it there is documentation of error codes in ArcGIS Server API REST ?
Here is what i am looking for :
I try to find it in online documentation (ArcGIS Server REST API)... but without success.
Thank you in advance,
Flavie
Solved! Go to Solution.
Flavie,
What version of ArcGIS Server are you using?
Meanwhile you may refer:
I hope this helps!
~Shan
Flavie,
What version of ArcGIS Server are you using?
Meanwhile you may refer:
I hope this helps!
~Shan
Shan,
Than you for all informations, it will be useful to me!
I use ArcGIS Server 10.3.1.
And I found JSON structure by testing a case in error
{
"error": {
"code": 500,
"message": "DIRECTORY/SERVICE/MapServer not found ",
"details": []
}
}
Regards,
Flavie
I just stumbled across this post because I have the same question.
The links that Shan sent refer to server codes as seen in the log, not codes as returned by the ArcGIS REST API when making HTTP requests.
As seen in Flavie's example above, 500 is often returned when something's really wrong, like you used the wrong map service URL for a query or there's an internal server error. From memory, I seem to recall that you get a 498 error when a server is using the legacy "tokens" authentication method and the token is invalid. I've seen 499 errors too, but I don't recall what problem a 499 describes.
Anecdotally, I have noticed that the error series follows HTTP error code series (4XX errors are a problem with the client's request, and 5XX errors are a problem on the server). But that doesn't really help when you're trying to understand the range of possible codes.
A list of possible ArcGIS REST API codes (along with their meaning) would be quite helpful.
-Jeff
Yeah, none of the docs above are what I'm looking for, either. It's pretty easy to force a bad token so I know at least one error code out of the REST API:
{"error":{"code":498,"message":"Invalid Token","details":[]}}
but...seriously, there's no others? Pretty sure a timeout can happen too. Gotta be a list somewhere.
Jeez, found them. WHY does it always take ten (Google) searches to find stuff like this? Service output—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers
This listing has a few more: https://developers.arcgis.com/net/reference/platform-error-codes/#http-network-and-rest-errors