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>

Samebug tips1

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.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web181

  • via GitHub by armin-bauer
    ,
  • via Unknown by Unknown author,
  • Stack trace

    • 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.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:998) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Julien SaabJulien Saab
    2 times, last one
    asdasdasdasd
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Nikolay RybakNikolay Rybak
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    50 more bugmates