All Products
Search
Document Center

Object Storage Service:Error handling

Last Updated:Sep 19, 2023

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 that uniquely identifies a request. If an issue occurs, provide the request ID to technical support for troubleshooting.

For more information about common error messages in OSS, see Overview.

Debugging

In a browser environment, set the localStorage.debug variable in the console to enable debugging.

localStorage.debug = 'ali-oss'