Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code: 403 'RequestTimeTooSkewed' when optimizing images. #2

Open
Routhinator opened this issue Oct 23, 2013 · 0 comments
Open

Code: 403 'RequestTimeTooSkewed' when optimizing images. #2

Routhinator opened this issue Oct 23, 2013 · 0 comments

Comments

@Routhinator
Copy link

{ [Error: API error with HTTP Code: 403]
  headers: 
   { 'x-amz-request-id': '72D240BCE707BA15',
     'x-amz-id-2': 'W53JZ18bdyHvxWpvyutwf1MX8NxgLBcgmbafa7vjt+t8gPYSwTTHPx+lh4eegAoh',
     'content-type': 'application/xml',
     'transfer-encoding': 'chunked',
     date: 'Wed, 23 Oct 2013 18:36:24 GMT',
    connection: 'close',
    server: 'AmazonS3' },
  code: 403,
  document: 
   { Code: 'RequestTimeTooSkewed',
     Message: 'The difference between the request time and the current time is too large.',
     MaxAllowedSkewMilliseconds: '900000',
     RequestId: '72D240BCE707BA15',
     HostId: 'W53JZ18bdyHvxWpvyutwf1MX8NxgLBcgmbafa7vjt+t8gPYSwTTHPx+lh4eegAoh',
     RequestTime: 'Wed, 23 Oct 2013 18:19:40 GMT',
     ServerTime: '2013-10-23T18:36:26Z' } }

I get this error consistently since making changes to my setup in order to prepare for retina display. When all I was doing was resizing everything worked fine, however now that I need to double the image size and then scale the quality down, this error is plaguing my setup. The busier NodeJS is, the worse the situation gets.. eventually I hit 100% fail rate on all image uploads to S3 with this exact error.

This says to me that the request signature is being generated BEFORE imagemagick is called, so if imagemagick takes more than a few seconds, the request expires before making the attempt.. the signature should be generated afterwards, just before the request is sent to S3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant