Problem description
A request header contains x-oss-callback and request parameters contain callback parameters. Only one of the two parameters can exist.
Causes
You configure x-oss-callback in the request header and configure the callback parameter in the request parameters of the URL-based request. The parameters cannot exist at the same time. Delete x-oss-callback from the request header, or delete the callback parameter from the request parameters of the URL-based request.
Examples
For example, you initiate the following request:
PUT /test.txt?callback=xxx HTTP/1.1
Host: callback-test.oss-test.aliyuncs.com
Content-Length: 5
x-oss-callback-var: eyJ4Om15X3ZhciI6ImZvci1jYWxsYmFjay10ZXN****=
x-oss-callback: eyJjYWxsYmFja1VybCI6IjEyMS40My4xMTMuODoyMzQ1Ni9pbmRleC5odG1sIiwg****mFja0JvZHkiOiJidWNrZXQ9JHtidWNrZXR9Jm9iamVjdD0ke29iamVjdH0mZXRhZz0ke2V0YWd9JnNpemU9JHtzaXplfSZtaW1lVHlwZT0ke21pbWVUeXBlfSZpbWFnZUluZm8uaGVpZ2h0PSR7aW1hZ2VJbmZvLmhlaWdodH0maW1hZ2VJbmZvLndpZHRoPSR7aW1hZ2VJbmZvLndpZHRofSZpbWFnZUluZm8uZm9ybWF0PSR7aW1hZ2VJbmZvLmZvcm1hdH0mbXlfdmFyPSR7eDpteV92YXJ9In0=
Host: callback-test.oss-test.aliyuncs.com
Date: Mon, 14 Sep 2015 12:37:27 GMT
Content-Type: text/plain
Authorization: OSS qn6q**************:77Dv****************
TestSolutions
If you configure x-oss-callback in the request header, do not configure the callback parameter in the request parameters of the URL-based request. If you configure the callback parameter in the request parameters of the URL-based request, do not configure x-oss-callback in the request header.
References
For information about the principles of the upload callback feature and how to use the feature, see Upload callbacks and Callbacks.
For more information about the common errors that you may encounter when you configure upload callbacks and the causes of these errors, see Upload callbacks.
For more information about how to obtain signature information from the server in various programming languages based on POST policies, configure upload callbacks, and then directly upload data to Object Storage Service (OSS) by using forms, see Overview.
For more information about how to set up an OSS-based direct data transfer service for mobile apps and configure upload callbacks, see Set up upload callbacks for mobile apps.