If a request error occurs during SDK usage, an exception will be thrown containing the following information:
- status: the HTTP status code of the error request
- code: OSS error code
- message: OSS error message
- requestId: the UUID that uniquely identifies the request. Seek help from OSS development engineers by providing this RequestId if necessary.
For details about common error messages in OSS, refer to OSS Error Response.
In Node.js, enable debugging by setting the ‘DEBUG` environment variable:
DEBUG=ali-oss node app.js
In a browser environment, set the
localStorage.debugvariable in the console to enable debugging:
localStorage.debug = 'ali-oss'