docs/generated/vocabulary.mdgenerated from code

Reference · 2 min read

error_code

Vocabulary: error_code.

What went wrong with a request, as the JSON-RPC error's code (its number) and message. Every error's data also says how to recover (a recover value) and, unless that is none, the one next action to take.

ValueMeaning
parse_errorThe request line is not JSON, or not UTF-8 text. Send one JSON object per line.
invalid_requestThe line is JSON but not a JSON-RPC 2.0 request: it lacks jsonrpc, method, or id, or is longer than the daemon reads.
method_not_foundNo operation has this name. The op vocabulary lists every operation.
invalid_paramsThe operation exists, but its params don't fit it: a field is missing, has the wrong type, or is out of range.
internal_errorThe daemon failed to finish the request. A transient fault (a part of the daemon not yet running) clears on a retry; a corrupt stored document needs manual repair; a daemon bug does not.
no_peerThe connection has not said which peer it acts for: the first request on a connection must be hello, with a peer this daemon knows and the connecting OS user may act as.
unknown_baseThe request is based on a version of the document this daemon doesn't have. Read the document again and redo the change from what it holds now. A read at a frontier that holds no such file (discussion:owner/385) is this code too, recovered by fixing the request.
out_of_boundsA change reaches past the end of the document at the version it is based on. Read the document again and redo the change from what it holds now.
rejectedA rule refused the request: the error's rule names which one, and its recovery is that rule's.
rate_limitedThe peer sent requests faster than its rate allows. Wait the time the error gives, then send the same request again.
secret_detectedThe change looks like it holds a secret (a key, a token, a password), so it was held and not shared. Confirm it holds none, or change the request so it doesn't.
path_collisionThe path collides with another one that differs only by letter case or Unicode normalization, or names an existing directory. Choose another path.
unknown_nodeThe node the request names isn't connected to this daemon's project swarm (discussion:owner/400). Name a node node.list lists.
not_supportedThe node the request names doesn't speak the protocol the request needs (discussion:owner/400): it runs an older LVCS. Upgrade LVCS on that machine.

Cardinality: 14.