Errors
Error answers
An error comes with the key error in place of response, and the message in error_message:
{
"error": {
"error_message": "Domain not found"
}
}
The API answers errors with HTTP status 200, like everything else, so tell an error by its error key. Any other status, such as 500, 502 or 504, means the request got no answer from the API itself, and its body is not JSON.
Messages
error_message | Endpoints | Meaning |
|---|---|---|
Domain not found | resolve | No such name or, for the reverse and owner lookups, no name that points at the address or belongs to the key. It comes without a proof, so check it with a second indexer: see Name Resolving. |
The names are being updated, repeat the request | resolve | The node was saving new names while it answered, and after a few tries its names and its Merkle tree were still at different states. Repeat the request a moment later; if the error stays, ask another node. |
One or several params provided have wrong value | resolve, history, checkpoints | A name, address or key in the path that is not valid, or a request parameter of the wrong type or value. |
Invalid incoming JSON | all but getRoot | The request body is not valid JSON. |
Wrong API method | all | The path names no endpoint: check the version and the endpoint's spelling, case included. info, getRoot and checkpoints also give it when anything follows their name in the path. |
Internal Error | all | The node could not read its own data. Repeat the request later, or ask another node. |