What do I do if the "Signature mismatch" error message is returned when I use Tablestore SDKs?

Updated at:

Problem description

The following error message is returned when I use Tablestore SDKs to perform operations:

Error Code: OTSAuthFailed, Message: Signature mismatch., RequestId: 0005f55a-xxxx-xxxx-xxxx-xxxxxxxxxxxx, TraceId: 10b0f0e0-xxxx-xxxx-xxxx-xxxxxxxxxxxx, HttpStatus: 403

Cause

The AccessKey ID and AccessKey secret that you specified when you initialized a Tablestore client do not match each other.

Solution

Specify a valid AccessKey pair when you initialize a Tablestore client. An AccessKey pair consists of an AccessKey ID and an AccessKey secret. For information about how to create an AccessKey pair, see Create an AccessKey pair.