Skip to main content

Errors

Census answers errors with an RFC 7807 problem body. type identifies the case, so a consumer can tell an incomplete inventory from a missing branch or a cache outage without reading the text.

{
"type": "inventory-incomplete",
"title": "Inventory incomplete",
"status": 409,
"detail": "the inventory is incomplete and complete results were required",
"causes": [ { "cause": "no_snapshot", "contribution": "netbox" } ]
}

Error cases​

StatustypeWhenExtra keys
400invalid-queryAn unknown parameter, a filter or sort on an undeclared field, a value that does not parse as the field's type, an undeclared location, a cursor Census did not issue, or a limit out of range.parameter
404inventory-not-foundNo inventory has this id.inventory
404entity-not-foundThe inventory has no entity with this HFID.hfid
404branch-not-foundNo source of the inventory has this branch.branch
409inventory-incompleterequire_complete=true and the inventory is incomplete.causes
503inventory-rebuildingCensus is recomputing the inventory after a configuration change. Retry later.inventory
503branch-unavailableA source that supports branches cannot be reached, and Census does not hold the branch view yet.contribution, error
503cache-unavailableCensus cannot reach Memgraph.

detail gives a sentence that names the value at fault, for example filter.ports: "many" is not a number.