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
Upload callback — how the upload callback feature works and how to configure it
Callback —
Callbackparameter referenceUpload callback errors and troubleshooting — common upload callback errors and fixes
Overview — server-side signature with POST policy and form upload