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.
Foundationframework or see Apple's official documentation.
|Error Code||Error Message||Error Description|
|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.
RequestIdreturned by the exception by following directions in Obtaining RequestId.
RequestIdand click Diagnose.