node-imager
node-imager copied to clipboard
AWS S3 uploading issue
Sometimes the debug log says an image is uploaded to S3, while it is not.
The same thing happened to me, went to investigate and noticed that the return of s3 was the 307 code, solved the problem by including the region attribute in the configuration https://github.com/LearnBoost/knox/issues/66
I have this issue when i create a bucket that is NOT us-standard region. Using "version": "0.2.7"
Despite setting the region in the config, e.g. eu-central-1
, imager seems only to work with us-standard
region buckets.
There is no error thrown by imager, the image seems to be uploaded but isn't actually there.
Having the same issue on 0.4.0 as well
Here is the detailed description of my issue.
I tried uploading the same image to the S3, but sometimes (around 1/5 chance) it fails. Upon investigation S3 returns Error 400 (the message is simply Bad Request
) to Knox, but Knox does not throw Error, causing Imager to treat the case as normal.
Looks like it is the issue of Knox.