All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Signature

Last updated:2023-01-10 16:02:55

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#, GO, or C/C++

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback