When a request fails, the OSS SDK for Browser.js throws an error object. In most cases, the error contains the following properties:
| Property | Description |
|---|---|
status | HTTP status code of the failed request |
code | OSS error code |
message | OSS error message |
requestId | UUID that uniquely identifies the request. Provide this ID to Alibaba Cloud technical support when reporting an issue. |
For a list of common OSS errors, see Overview.
Enable debugging
In a browser environment, enable SDK debug logs by running the following in the browser console:
localStorage.debug = 'ali-oss'