0

当我尝试从 Java 上的 RDS DBInstances 获取标签时遇到问题。

AmazonRDS rds = new AmazonRDSClient(credentialsProvider);
ListTagsForResourceRequest request = new ListTagsForResourceRequest();
ListTagsForResourceResult resultedTags = rds.listTagsForResource(request);

Status Code: 500, AWS Service: AmazonRDS, AWS Request ID: ..., AWS Error Code: InternalFailure, AWS Error Message: An internal error has occurred. Please try your query again at a later time.
Stack Trace:
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:614)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:312)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:165)
at com.amazonaws.services.rds.AmazonRDSClient.invoke(AmazonRDSClient.java:1992)
at com.amazonaws.services.rds.AmazonRDSClient.listTagsForResource(AmazonRDSClient.java:746)
at com.vqs.AwsConsoleApp.getRDSInstances(AwsConsoleApp.java:98)
at com.vqs.AwsConsoleApp.main(AwsConsoleApp.java:73)

先感谢您

4

1 回答 1

0

从 Amazon RDS API 参考中,看起来ResourceName请求中的参数是必需的: http: //docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ListTagsForResource.html

尝试使用您的 RDS 数据库实例 ID 之一设置该请求参数,您应该会得到良好的响应。

我不确定您为什么没有从服务中收到更有用的错误消息。我会将这些信息传递给 RDS 团队。

希望有帮助!

于 2013-02-25T18:36:43.547 回答