获取com.amazonaws.AmazonClientException:无法解组响应(读取超时)

时间:2017-01-05 10:49:37

标签: amazon-web-services amazon-ec2

我得到以下异常。任何人都可以指出它为什么会来吗?

 AmazonEC2Client ec2Client = AWSEC2Client.getAWSEC2Client(set basicCredentials :: accesskey and secret key);

 ec2Client.setRegion(set regions);

 final ClientConfiguration clientConfiguration = new ClientConfiguration()
                .withConnectionTimeout(150000).withMaxConnections(200)
                .withRetryPolicy(new RetryPolicy(null, null, 3, true));

 describeInstancesResult = ec2Client.describeInstances(new DescribeInstancesRequest().withFilters(filterList));
  

#011at com.amazonaws.services.ec2.AmazonEC2Client.describeInstances(AmazonEC2Client.java:5392)~ [aws-java-sdk-ec2-1.10.54.jar:na]    #011at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:11095)~ [aws-java-sdk-ec2-1.10.54.jar:na]    #011at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:311)~ [aws-java-sdk-core-1.10.54.jar:na]    #011at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:362)~ [aws-java-sdk-core-1.10.54.jar:na]    #011at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:400)〜[aws-java-sdk-core-1.10.54.jar:na]    #011at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:631)~ [aws-java-sdk-core-1.10.54.jar:na]    #011at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:893)~ [aws-java-sdk-core-1.10.54.jar:na]    #011at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:1281)~ [aws-java-sdk-core-1.10.54.jar:na]    com.amazonaws.AmazonClientException:无法解组响应(读取超时)。响应代码:200,响应文本:确定

0 个答案:

没有答案