not_found

The message text is shown in the example below.

HTTP status404
typenot_found_error
Retry?No, not unchanged
StatusIn the public catalog (error-envelope.ts)
Extra fieldsnone

When it happens

The path or resource does not exist for this credential.

Example

{
  "error": {
    "type": "not_found_error",
    "code": "not_found",
    "message": "The requested resource was not found.",
    "param": null,
    "request_id": "req_6f1c2a9e0b7d4c3a8e5f1b2d"
  }
}

How to fix it

  • Check the path and the id; ids are case-sensitive.

Detect it in code

err = resp.json().get("error", {})
if resp.status_code == 404 and err.get("code") == "not_found":
    log.warning("%s (%s)", err["message"], err["request_id"])  # fix the request; do not retry unchanged
Was this page helpful?