Comments (13)
I had the 'Field Errors' problem and it was because I had not added the Amazon S3 Permission to my IAM User's Group
from keystone-storage-adapter-s3.
@bflopez I ended up forking the repo and created a PR but it hasn't been accepted
#29
https://github.com/stevenkaspar/keystone-storage-adapter-s3
from keystone-storage-adapter-s3.
I'm seeing this same error and I have no idea where to look after random debugging :\
from keystone-storage-adapter-s3.
I get the same error when I run KeystoneJS from docker container. If I run KeystoneJS with the same File.js configuration from a local machine (not docker), it works and a file is uploaded to S3.
@JedWatson Should I have installed aws-cli
on machine? Because I have it on local, but not in container.
from keystone-storage-adapter-s3.
I've installed and configure aws
on Docker container and Field errors
still persist.
from keystone-storage-adapter-s3.
My understanding of this issue was to do with certain AWS regions now requiring checksum signing before upload. The library that this uses to upload does not support the new AWS skd requirements and some quick research looks like the project has been abandoned. EU-West-2 (London) and AP-southeast-2 (Sydney) both have the new requirements.
As an aside @stevenkaspar I’d suggest using a more specific permission set on AWS rather than full access. You can build policies to limit it to a single bucket.
from keystone-storage-adapter-s3.
@mrprkr Thanks for the heads up - relatively new to AWS. Went ahead and created a new policy
So should it be updated to use aws-sdk/clients/s3
? I am planning to use this a lot so I can update it if it should be
from keystone-storage-adapter-s3.
I haven’t looked at this in almost a year, from memory there wasn’t good node support from AWS when they changed the requirements. I think this should be a pretty straight forward pull request, I’m on my iPad and can’t easily look at the code but there’s a library in here that handles the upload. This library has been abandoned and doesn’t support the new AWS-SDK. Updating the upload part of this module should flex the field errors issue.
from keystone-storage-adapter-s3.
FYI the library in question is Knox
from keystone-storage-adapter-s3.
@stevenkaspar what did you end up doing?
from keystone-storage-adapter-s3.
@stevenkaspar Saw that shortly after commenting. Swapped in your code and it works like a charm. Thank you.
from keystone-storage-adapter-s3.
@stevenkaspar Alright mate, your solution just works !! <3 <3 <3
from keystone-storage-adapter-s3.
This issue has been resolved in v2.0.0.
See #35
from keystone-storage-adapter-s3.
Related Issues (20)
- No option to use original filename HOT 5
- No support for IAM roles HOT 2
- Multiple images? HOT 4
- Cloudfront support HOT 2
- Problem with updates and deletes HOT 6
- failure to prefix path with `/` results in leaking local directory info into s3 url HOT 2
- pre:upload option is gone? HOT 1
- schema option to presave image dimensions HOT 1
- Compatibility with latest Keystone version HOT 3
- Note field option
- S3 Multiple Uploads HOT 1
- ACL: "public-read" HOT 9
- Define endpoint to use other s3 compatible object storage HOT 1
- Public URL is incorrectly generated? HOT 1
- uploads added to /tmp on server HOT 1
- Digital Ocean Spaces support? HOT 1
- `encodeSpecialCharacters()` behaviour
- Dynamic path HOT 1
- Original Filename HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keystone-storage-adapter-s3.