What does the 07-CALLBACK0007-00000027 error code indicate and how do I resolve the issue?

更新时间:
复制 MD 格式

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****************
Test

Solutions

Remove one of the two conflicting parameters and resend the request:

  • If you use x-oss-callback in the request header, remove the callback parameter from the URL query string.

  • If you use the callback parameter in the URL query string, remove x-oss-callback from the request header.

References