Problem description
A request includes both x-oss-callback in the request header and callback in the URL query string at the same time. Only one of these two parameters can be present per request.
Causes
x-oss-callback in the request header and callback in the URL query string are mutually exclusive. Setting both simultaneously triggers this error.
Examples
The following request triggers this error because it includes callback in the URL query string (?callback=xxx) and x-oss-callback in the request header:
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
Remove one of the two conflicting parameters and resend the request:
If you use
x-oss-callbackin the request header, remove thecallbackparameter from the URL query string.If you use the
callbackparameter in the URL query string, removex-oss-callbackfrom the request header.
References
For information about upload callback principles and configuration, see Upload callbacks and Callbacks.
For common upload callback errors and their causes, see Upload callbacks.
For information about configuring upload callbacks in form-based uploads using POST policies, see Overview.
For information about configuring upload callbacks for mobile app direct uploads to OSS, see Set up upload callbacks for mobile apps.