我猜我太频繁地调用 AWS Storage Gateway refreshCache 方法(正如消息所示),但我不确定我需要等多久才能再次点击它,任何帮助将不胜感激。
AWSStorageGateway gatewayClient = AWSStorageGatewayClientBuilder.standard().build();
RefreshCacheRequest cacheRequest = new RefreshCacheRequest();
cacheRequest.setFileShareARN(this.fileShareArn);
gatewayClient.refreshCache(cacheRequest);
com.amazonaws.services.storagegateway.model.InvalidGatewayRequestException:向服务器发送的请求过多。(服务:AWSStorageGateway;状态代码:400;错误代码:InvalidGatewayRequestException;请求 ID:f1ffa249-6908-4ae1-9f71-93fe7f26b2af)在 com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1712) 在 com。 amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1367) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.爪哇:770)