我在我的项目中实现了Amazon S3
。但我得到Service: Amazon S3; Status Code: 403; Error Code: AllAccessDisabled;
我在谷歌被罚款但我没有发现这个问题。请告诉我我做错了什么。还有一件事当我注册Amazon S3
时,我选择的不是开发人员或业务。
com.amazonaws.services.s3.model.AmazonS3Exception: All access to this object has been disabled (Service: Amazon S3; Status Code: 403; Error Code: AllAccessDisabled; Request ID: XXXXXXXXXXXXXXX), S3 Extended Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
11-28 18:30:00.410 30990-10598/com.example.sanjitpatra.myapplication W/System.err: at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:712)
11-28 18:30:00.410 30990-10598/com.example.sanjitpatra.myapplication W/System.err: at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:388)
11-28 18:30:00.410 30990-10598/com.example.sanjitpatra.myapplication W/System.err: at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:199)
11-28 18:30:00.410 30990-10598/com.example.sanjitpatra.myapplication W/System.err: at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4375)
11-28 18:30:00.410 30990-10598/com.example.sanjitpatra.myapplication W/System.err: at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1357)