All Products
Search
Document Center

Object Storage Service:0007-00000005

Last Updated:Mar 20, 2026

Problem description

The callbackUrl field in the upload callback configuration contains more than five URLs.

Causes

When Object Storage Service (OSS) processes an upload request, it decodes the Base64-encoded Callback parameter and parses the resulting JSON. If the callbackUrl field contains more than five URLs, OSS rejects the request and returns this error.

The callbackUrl field specifies the destination URLs that OSS calls after a successful upload. OSS tries each URL in order and stops at the first success response. You can specify up to five URLs, separated by semicolons (;).

Examples

The following Callback JSON triggers this error because callbackUrl contains six URLs:

{
  "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}"
}

Solutions

Make sure the URLs in callbackUrl are valid and that the total count does not exceed five.

References