All Products
Search
Document Center

Object Storage Service:0007-00000002

Last Updated:Aug 20, 2026

Problem description

The `Callback` parameter in the request is not a valid Base64-encoded string.

Causes

This error occurs because the server-side fails to decode the `Callback` parameter, whose value must be a Base64-encoded JSON string. The `Callback` parameter can be the `callback` parameter in the URL, the x-oss-callback field in the request header, or the `callback` form field in a Post request.

Examples

For example, you send the following request:

PUT /test.txt HTTP/1.1
Host: callback-test.oss-cn-hanghzou.aliyuncs.com
Content-Length: 4
x-oss-callback-var: eyJ4Om15X3ZhciI6ImZvci1jYWxsYmFjay10ZXN****=
x-oss-callback: x123-*&
Date: Sun, 19 Feb 2023 09:42:14 GMT
Content-Type: text/plain
Authorization: OSS qn6q**************:77Dv****************
Test

In the preceding request, the x-oss-callback header is set to x123-*&. This value is not a valid Base64-encoded string and causes the error.

Solutions

Ensure that the `Callback` parameter in the request is a Base64-encoded JSON string. For more information about how to construct the request, see the Callback document.

References