Exception

Last Updated: Nov 01, 2017

If a request error occurs during SDK usage, an exception is 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 more information about common error messages in OSS, see OSS Error Response.

Debugging

  • In Node.js, enable debugging by setting the ‘DEBUG` environment variable:

    1. DEBUG=ali-oss node app.js
  • In a browser environment, set the localStorage.debug variable in the console to enable debugging:

    1. localStorage.debug = 'ali-oss'
Thank you! We've received your feedback.