com.amazonaws.services.s3.model.AmazonS3Exception: The provided token has expired. (Service: Amazon S3; Status Code: 400; Error Code: ExpiredToken; Request ID: <redacted>), S3 Extended Request ID: <redacted>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.

Solutions on the web

via GitHub by nimbudew
, 1 year ago
The provided token has expired. (Service: Amazon S3; Status Code: 400; Error Code: ExpiredToken; Request ID: <redacted>), S3 Extended Request ID: <redacted>
via Stack Overflow by Sanjit Patra
, 1 year ago
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
via Stack Overflow by Cat H
, 2 years ago
The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: Amazon S3; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: A796905192C41ED5)
via Stack Overflow by gkiko
, 2 months ago
Status Code: 400, AWS Service: Amazon S3, AWS Request ID: BD9957E5F3960247, AWS Error Code: null, AWS Error Message: Bad Request, S3 Extended Request ID: oCgfA+foevj6CEFWO0F22H+AVbqr4F0hr7c4M7OlILxOSb0ZZ25FqHhZnzgyLxRPMuiyeOdjnSM=
via Stack Overflow by zombie
, 2 years ago
null (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: null), S3 Extended Request ID: null
via Stack Overflow by RDD
, 2 years ago
Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 123456789), S3 Extended Request ID: XXXXXXXXXXXXXX
com.amazonaws.services.s3.model.AmazonS3Exception: The provided token has expired. (Service: Amazon S3; Status Code: 400; Error Code: ExpiredToken; Request ID: <redacted>), S3 Extended Request ID: <redacted>
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:805)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:428)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:234)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3569)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1130)
at com.qubole.qds.sdk.java.client.ResultStreamer$1.getObject(ResultStreamer.java:142)
at com.qubole.qds.sdk.java.client.ResultStreamer$PathReader.loadNextReader(ResultStreamer.java:224)
at com.qubole.qds.sdk.java.client.ResultStreamer$PathReader.read(ResultStreamer.java:170)
at com.qubole.qds.sdk.java.client.ResultStreamer$PathReader.read(ResultStreamer.java:185)
at com.qubole.qds.sdk.java.client.ResultStreamer$PathReader.read(ResultStreamer.java:178)

Users with the same issue

16 times, 1 month ago
3 times, 6 months ago
Once, 10 months ago
2 times, 1 year ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.