If a request fails when you use Object Storage Service (OSS) SDK for Browser.js, information about the error is thrown.
In most cases, an error contains the following information:
- Status: the HTTP status code of the error request.
- Code: the OSS error code.
- Message: the OSS error message.
- RequestId: the UUID of the request. If the problem persists, provide the request ID to OSS technical support for troubleshooting.
For more information about common error messages in OSS, see Error responses.
Debugging
In a browser environment, set the localStorage.debug
variable in the console to enable debugging.
localStorage.debug = 'ali-oss'