【发布时间】:2023-03-08 22:15:02
【问题描述】:
当我从我的 android 应用程序运行发布请求 api 时,我收到以下错误“来自 CloudFront 的错误”。虽然当我从邮递员那里测试 api 时,它给出了同样的错误,但它确实更新了 DynamoDb 中的详细信息,但是当我在移动应用程序上运行它时,它给出了同样的错误,但在 DynamoDB 中没有更新。还有必要用 API Gateway 配置 CloudFront 吗?
以下是我的android监视器详细输出:
content-type: application/json
content-length: 982
date: Sat, 06 May 2017 17:57:56 GMT
x-amzn-requestid: 88a875cd-3285-11e7-959a-1bb59a5dfddb
x-amzn-trace-id: sampled=0;root=1-590e0ea4-46e2415a5816996f8f61985f
x-cache: Miss from cloudfront
via: 1.1 7b637ad78977549938b508611f792222.cloudfront.net (CloudFront)
x-amz-cf-id: PA8VzPLzR823OAVOxT9bWgyIHdyue9-CAnXyLrWJY_7WMSB_xSdCEw==
OkHttp-Sent-Millis: 1494093475993
OkHttp-Received-Millis: 1494093476302
Status code: 200
【问题讨论】:
标签: android amazon-cloudfront aws-api-gateway