This topic describes the possible causes of the failure to access an object by using the object URL and the relevant solutions.

Possible causes and solutions:

  1. Invalid signatures

    Description: The characters in the object URL are not encoded as required. As a result, inconsistency occurs between the server and the client.

    Solution: You can refer to the URL encoding rules and correctly encode the object URL. For example, encode a space with %20 and a plus sign (+) with %2B.

    The encoding of spaces and plus signs (+) are only used as examples. For more information, see HTML URL Encoding Reference.

  2. Invalid objects

    Description: If the object URL is correct, the required object may be deleted within the validity period of the URL.

    Solution: You can use Object Storage Service (OSS) SDKs to check whether the required object is deleted. For example, you can use OSS SDK for Java. For more information, see Determine whether an object exists.