Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8929997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:47:21+00:00 2026-06-15T08:47:21+00:00

I am constantly getting error reports (from users) such as: Caused by: Status Code:

  • 0

I am constantly getting error reports (from users) such as:

Caused by: Status Code: 400, AWS Service: AmazonSimpleDB, AWS Request ID: c5cb109d-bbff-fcea-bc0d-0cb60ff8f6af, AWS Error Code: RequestExpired, AWS Error Message: Request has expired. Timestamp date is 2012-06-06T13:19:59.415Z. Current date is 2012-06-06T14:20:03Z

Apparently this is because the user has the wrong timezone or something set? Regardless, I would like to catch this particular error and post a message to the user asking them to check their timezone settings however I can’t find a way to do it. If I catch AmazonServiceException, the error shows up as null.

How can I catch errors based on Status Code or even Error Code? The current code that I tried looks like this:

try {
        dostuff()
    } catch (IOException e) {
        updateAWS("DownloadErrors");
        return "filenotfound";
    } catch (AmazonServiceException e) {
        return "downloadfail";
    }

However AmazonServiceException e is always null so I can’t pull any information from it.

other code:

private void doStuff() throws IOException, AmazonServiceException{ 
//code here
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:47:22+00:00Added an answer on June 15, 2026 at 8:47 am

    Apparently this is what I needed. SDb tracks “RequestExpired” and S3 uses “RequestTimeTooSkewed”

    Also, this appears to be occurring because the system time is >15 minutes different than the AWS server. I put a note to the user to check their time and use “Automatic” date/time if possible. Tested it myself and reproduced the error as well as the solution.

    try {
            result = doOperations();
        } catch (AmazonServiceException e) {
            if (e.getErrorCode().equals("RequestExpired") || e.getErrorCode().equals("RequestTimeTooSkewed")) {
                result = "timestamp";
            }
            }
        return result;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep constantly getting a segmentation error with a small portion of code and
I'm constantly (every 30-60 min) getting a System.OutOfMemoryException in my Windows Service. The service's
I am trying to install SciPy following these instructions: http://www.scipy.org/Download And constantly getting error
I have coded a nice script but i am constantly getting Error on line
I'm constantly getting an error on the TFS2010 build server, due to an inexistent
I'm constantly getting this error whenever I try to pass a array of Strucs
i am writing a kohana controller, and i am constantly getting a weired error,
I am constantly getting an ambiguous overload error no matter what I do ....
I'm constantly getting the following error on my app: 09-25 15:52:24.875: E/AudioHardware(144): -----AudioStreamInALSA::read(0x42db0040, 512)
I am constantly getting the EXC_BAD_ACCESS error in multiple places but always on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.