Giter Club home page Giter Club logo

Comments (13)

meteficha avatar meteficha commented on July 18, 2024

Could you please provide a minimal test case? It seems to be working for me flawlessly.

from aws.

acheshkov avatar acheshkov commented on July 18, 2024

I use your library inside Yesod. Please look at code here http://paste.org/48583.

Also i make requests from ubuntu installed on virtual box.

Thanks.

from aws.

aristidb avatar aristidb commented on July 18, 2024

This works just fine for me, of course using a different bucket and a different lazy ByteString.

Is there a proxy? Do you have the most recent versions of aws installed? Did you make modifications to your copy of the aws codebase?

from aws.

aristidb avatar aristidb commented on July 18, 2024

I've also tried if maybe a big 20 MB file would present problems. No, works fine.

Sorry, but I really can't replicate this.

from aws.

acheshkov avatar acheshkov commented on July 18, 2024

I installed aws package from hackage without modifications. It was the first installation of aws on my system. I'll try to run this code outside virtualbox for interest and make other experiments.

from aws.

acheshkov avatar acheshkov commented on July 18, 2024

i think have found the bug. It turns out that bucket name in your library must be in lower case . I created the bucket with name in lower case letters "fwbuckettest" and it's work just fine. I don't make sense how it works for you .

from aws.

aristidb avatar aristidb commented on July 18, 2024

It works for me, because all my buckets have lower-case names. I suggest that you just write the name in lower-case while we figure out how to deal with this.

from aws.

aristidb avatar aristidb commented on July 18, 2024

Oh, by the way: the s3ErrorStringToSign parameter can help identify the problem. We did not have that available though.

from aws.

aristidb avatar aristidb commented on July 18, 2024

According to this: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/dev/BucketRestrictions.html

Bucket names are NOT generally case-insensitive, and outside the US Standard region, bucket names must always be lower-case if I understand it right.

@meteficha What do you think?

from aws.

aristidb avatar aristidb commented on July 18, 2024

@acheshkov If you actually have upper-case bucket names (which is only allowed in the US Standard region), then switching to PathStyle requests should work. You have to change the S3 configuration for that.

from aws.

meteficha avatar meteficha commented on July 18, 2024

AWS themselves say that you have DNS complient bucket names. I guess we should put a note on the docs of aws.

from aws.

aristidb avatar aristidb commented on July 18, 2024

@meteficha No, in the US standard region, non-DNS-compliant names are allowed. You have to use path-style requests for those.

I've tested it, and that constraint is enforced. When trying to create a bucket with uppercase characters in the Ireland region, I get this error: "A bucket name in Ireland region must contain only lower case characters"

If we want it to "just work", we might consider to detect upper-case characters and switch the request style for those (by default).

from aws.

meteficha avatar meteficha commented on July 18, 2024

Sorry, there should be a "should" on my phrase above. =)

Quoting them: "It is therefore recommended that you always use bucket names that are DNS compliant regardless of the region in which you create the bucket."

from aws.

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.