All Products
Search
Document Center

Object Storage Service:0007-00000005

Last Updated:Jul 21, 2023

Problem description

The number of URLs that are specified in the request exceeds the upper limit.

Causes

You initiated a request and obtained a JSON string that is decoded from the Base64-encoded value of the Callback parameter that specifies upload callback. If the number of URLs in the callbackUrl field exceeds the upper limit, the error is returned.

The callbackUrl field contains the destination URLs of requests after objects are uploaded to Object Storage Service (OSS). The callbackUrl field can contain up to five URLs. Multiple URLs are separated by semicolons (;). OSS sends requests to each URL until a success response is returned.

If the number of URLs exceeds five, the error is returned.

Examples

The following code shows a sample response that is decoded from the value of the Callback parameter:

{
"callbackUrl":"https://callback1.com;https://callback2.com;https://callback3.com;https://callback4.com;https://callback5.com;https://callback6.com;",
"callbackBody":"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&imageInfo.height=${imageInfo.height}&imageInfo.width=${imageInfo.width}&imageInfo.format=${imageInfo.format}&my_var=${x:my_var}"
}

In the preceding response, the callbackUrl field contains six URLs that are separated by semicolons (;). As a result, the error is returned.

Solutions

Make sure that the URLs in the callbackUrl field are correct and the number of URLs does not exceed five.

References

  • For information about the principles of the upload callback feature and how to use the feature, see Upload callback and Callback.

  • For information about the common errors that you may encounter when you configure upload callback and the causes of the errors, see Upload callback errors and troubleshooting.

  • For information about how to obtain signature information from the server in various programming languages based on POST policies, configure upload callback, and then directly upload data to OSS by using form upload, see Overview.

  • For information about how to set up an OSS-based direct data transfer service for mobile apps and configure upload callback, see Set up upload callback for mobile apps.