Weird exception of AWS JDK: "AmazonDynamoDBException: User not found"

0

I am working on adding a new library that depends on AWS JDK to my project, however, some other untouched existing component querying DynamoDB throws the exception:

Caused by: com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: User not found: the_user_key (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: UnrecognizedClientException; Request ID: null; Proxy: null)

the_user_key works well before I add the new library, but it suddenly says the user was not found. I am using com.amazonaws:aws-java-sdk-dynamodb:1.11.704, "com.amazonaws:aws-java-sdk-core:1.11.704", and there are also a bunch of software.amazon.awssdk with version 2.16.87.

I am wondering if anybody encountered similar issues before, or if anybody could give any advice.

codenut
已提問 1 年前檢視次數 441 次
1 個回答
0

If updating to the latest version of the AWS SDK does not resolve the issue, you may want to check your AWS credentials and ensure that the user associated with "the_user_key" has the appropriate permissions to access DynamoDB. You can also try testing your credentials and permissions with the AWS CLI to ensure that they are working properly.

profile pictureAWS
nemf
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南