Updated on 2026-07-27 GMT+08:00

NoSuchKey

The specified key does not exist

Error description

The object is not found.

Error cause
  • Cause 1: The object name specified in the request is different from the actual object name.
  • Cause 2: The object has been deleted based on a lifecycle rule.
  • Cause 3: The object has been deleted by an authorized user through OBS Console, tool, or API.
  • Cause 4: The bucket housing the requested object has a cross-region replication relationship with another bucket. The deletion operation performed on that bucket has been synchronized to this bucket, resulting in the object deletion.
Handling suggestion
  • For cause 1:

    Check that the object name provided in the request is the same as the actual object name and contains no extra, missing, or incorrect characters.

  • For cause 2:

    Check the bucket's lifecycle rules to see if any deletion rule has been triggered for the object. For details, see Creating a Lifecycle Rule.

  • For cause 3:

    Check whether any authorized user has deleted the object. You can enable for the bucket to check in the log if there are any deletion operations or list objects in the bucket to check whether the object exists.

  • For cause 4:

    Check the cross-region replication rules of the bucket to see if the requested object has been deleted. For details, see Cross-Region Replication Within an Account Using OBS.