Giter Club home page Giter Club logo

Comments (13)

stevenkaspar avatar stevenkaspar commented on September 28, 2024 1

I had the 'Field Errors' problem and it was because I had not added the Amazon S3 Permission to my IAM User's Group

screen shot 2017-11-07 at 6 45 52 pm

from keystone-storage-adapter-s3.

stevenkaspar avatar stevenkaspar commented on September 28, 2024 1

@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.

gabek avatar gabek commented on September 28, 2024

I'm seeing this same error and I have no idea where to look after random debugging :\

from keystone-storage-adapter-s3.

davidmrnustik avatar davidmrnustik commented on September 28, 2024

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.

davidmrnustik avatar davidmrnustik commented on September 28, 2024

I've installed and configure aws on Docker container and Field errors still persist.

from keystone-storage-adapter-s3.

mrprkr avatar mrprkr commented on September 28, 2024

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.

stevenkaspar avatar stevenkaspar commented on September 28, 2024

@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.

mrprkr avatar mrprkr commented on September 28, 2024

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.

mrprkr avatar mrprkr commented on September 28, 2024

FYI the library in question is Knox

from keystone-storage-adapter-s3.

bflopez avatar bflopez commented on September 28, 2024

@stevenkaspar what did you end up doing?

from keystone-storage-adapter-s3.

bflopez avatar bflopez commented on September 28, 2024

@stevenkaspar Saw that shortly after commenting. Swapped in your code and it works like a charm. Thank you.

from keystone-storage-adapter-s3.

Avcajaraville avatar Avcajaraville commented on September 28, 2024

@stevenkaspar Alright mate, your solution just works !! <3 <3 <3

from keystone-storage-adapter-s3.

mikehazell avatar mikehazell commented on September 28, 2024

This issue has been resolved in v2.0.0.
See #35

from keystone-storage-adapter-s3.

Related Issues (20)

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.