Git Product home page Git Product logo

mongoose-attachments-aws2js's People

Contributors

johanfirebase avatar nuarhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mongoose-attachments-aws2js's Issues

Update version on npm

Could you push a new version of this module to npm please? The one currently up doesn't have the code that fixes #1 in it.

Thanks.

Code: 403 'RequestTimeTooSkewed' when optimizing images.

{ [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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.