title: SES listContacts: The request signature we calculated does not match
body: <p>I am using the Java SDK 2 (version 2.17.51), and when attempting a simple <a href="https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/sesv2/SesV2Client.html#listContacts--" rel="nofollow noreferrer"><code>listContacts</code></a> request, I get the following:</p>
  <pre><code>software.amazon.awssdk.services.sesv2.model.SesV2Exception: 
  The request signature we calculated does not match the 
  signature you provided. Check your AWS Secret Access Key 
  and signing method. Consult the service documentation for 
  details.
  </code></pre>
  <p>This same key works fine when calling <a href="https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/sesv2/SesV2Client.html#getContact-java.util.function.Consumer-" rel="nofollow noreferrer"><code>getContact</code></a>, and is also  used with other modules (e.g. S3) without problems, and the associated user has &quot;Full Access&quot; for SES. If I just remove the credentials, I get a different error (<code>software.amazon.awssdk.core.exception.SdkClientException: Unable to load credentials from any of the providers</code>) so finding the credentials doesn't seem to be the issue.</p>
  <p>EDIT: adding the code (Scala)</p>
  <pre class="lang-scala prettyprint-override"><code>
      val client = sesv2.SesV2Client.builder()
        .region(Region.US_EAST_1)
        .build()
  
      val topic =
        TopicFilter.builder()
          .topicName(&quot;mytopic&quot;)
          .build()
  
      val filter =
        ListContactsFilter.builder()
          .topicFilter(topic)
          .build()
  
      val request = 
        ListContactsRequest.builder()
          .contactListName(&quot;mylist&quot;)
          .pageSize(10000)
          .filter(filter)
          .build()
  
      val contacts = client.listContacts(request).contacts
  </code></pre>