gpt4 book ai didi

android - 来自 Android 的所有 S3 调用都出现 504 错误

转载 作者:行者123 更新时间:2023-12-05 00:03:58 25 4
gpt4 key购买 nike

在过去的几个小时里,每当我尝试将内容上传到 S3 时,我的应用程序开始出现此错误。

Unable to unmarshall error response (Unable to parse JSON String.).Response Code: 504, Response Text: Gateway Time-out, Response Headers:{X-Android-Selected-Protocol=http/1.1, Server=awselb/2.0,Connection=keep-alive, X-Android-Response-Source=NETWORK 504,X-Android-Sent-Millis=1606318289732, Content-Length=132,X-Android-Received-Millis=1606318300066, Date=Wed, 25 Nov 202015:31:41 GMT, Content-Type=text/html}

我们正在使用它来实例化和上传我们的文件:

sTransferUtility = TransferUtility.builder()
.context(mActivity)
.awsConfiguration(AWSMobileClient.getInstance().getConfiguration())
.s3Client(new AmazonS3Client(sCredProvider, Region.getRegion(Regions.US_EAST_1)))
.build();

...

TransferObserver observer = sTransferUtility.upload(MY_BUCKET, mPictureFile.getName(), mPictureFile);
...

observer.setTransferListener(new TransferListener() {
@Override
public void onStateChanged(int id, TransferState state) {
if (state == TransferState.COMPLETED) {
...
} else if (state == TransferState.CANCELED || state == TransferState.FAILED) {
...
}
}

@Override
public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {
}

@Override
public void onError(int id, Exception ex) {
//THIS IS WHERE THE ERROR RETURNS
}
});

最佳答案

显然 AWS us-east-1 区域存在重大问题。

9:52 AM PST: The Kinesis Data Streams API is currently impaired in theUS-EAST-1 Region. As a result customers are not able to write or readdata published to Kinesis streams. CloudWatch metrics and events arealso affected, with elevated PutMetricData API error rates and somedelayed metrics. While EC2 instances and connectivity remain healthy,some instances are experiencing delayed instance health metrics, butremain in a healthy state. AutoScaling is also experiencing delays inscaling times due to CloudWatch metric delays. The issue is alsoaffecting other services, including ACM, Amplify Console, API Gateway,AppMesh, AppStream2, AppSync, Athena, Batch, CloudFormation,CloudTrail, Cognito, Connect, DynamoDB, EventBridge, Glue, IoTServices, Lambda, LEX, Managed Blockchain, Marketplace, Personalize,RDS, Resource Groups, SageMaker, Support Console, Well Architected,and Workspaces. For further details on each of these services, pleasesee the Personal Health Dashboard. Other services, like S3, remainunaffected by this event. This issue has also affected our ability topost updates to the Service Health Dashboard. We are continuing towork towards resolution.

更多信息在这里:https://status.aws.amazon.com/

关于android - 来自 Android 的所有 S3 调用都出现 504 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65008002/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com