When the SDK request fails, the error
field returned is not empty, but instead includes an error code, error description, and other necessary debugging information to help developers quickly fix any issues. Error codes (outlined in the returned error
field) include those returned by the client and those returned by the server.
NSURLError.h
in Foundation
framework or see Apple's official documentation.Error Code | Error Message | Error Description |
---|---|---|
10000 | InvalidArgument | Invalid parameter |
10001 | InvalidCredentials | Invalid certificate |
10004 | UnsupportOperation | Unsupported operation |
20001 | InvalidArgument | Invalid data returned by the server |
20004 | PoorNetwork | A verification for data integrity failed. |
30000 | UserCancelled | The user has canceled the request. |
30002 | AlreadyFinished | The job has already finished. |
Error codes returned by COS are based on HTTP status codes, such as 404 and 503. For more information on these error codes, see Error Codes. You can also use the self-diagnosis tool to debug the code and quickly locate request errors.
COS provides a self-help diagnosis tool to help you quickly locate request errors and debug the code.
RequestId
returned by the exception by following directions in Obtaining RequestId.RequestId
and click Diagnose.
Was this page helpful?