Signature

Last updated:2021-05-12 17:26:18

1. How can I troubleshoot a signature mismatch error?


1. How can I troubleshoot a signature mismatch error?

If the SignatureDoesNotMatch error message is returned, a signature error has occurred.
Follow these steps for troubleshooting:

  1. Verify that the AccessKey does not have extra spaces.
  2. When the request header contains Content-MD5, the StringToSign must contain the MD5 value of the requested content data that uses Base64 encoding.
  3. Verify that the Content-Type is the same as the Content-Type in the HTTP header. The Content-Type indicates the type of the content requested.
  4. Verify that the Date is the same as the Data in the HTTP header and is using one of the GMT formats supported by HTTP1.1. Note that the interval between the time you send the request (client-side system time) and the time when the server receives the request must not exceed 15 minutes. If the interval exceeds 15 minutes, the system considers the request is invalid and returns an error. Verify that the system time on the request sender is the standard time.
  5. Verify that the CanonicalizedKssHeaders is the Header combinations starting with x-kss in the HTTP request.
  6. Verify that the CanonicalizedResource is the resource that you want to access.
  7. Verify that the signature meets the signature construction rules. For more information, see Request signature.

As a best practice, use an SDK for signature. You can use the SDK for Java, PHP, Python, Android, IOS, JavaScript, Node.js, C#, or C/C++

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈