Giter Site home page Giter Site logo

Comments (7)

martinklepsch avatar martinklepsch commented on August 25, 2024

Are you sure the name of your bucket is my-bucket?

POST https://my-bucket.s3-eu-west-1.amazonaws.com/ net::ERR_CONNECTION_RESET

from s3-beam.

yayitswei avatar yayitswei commented on August 25, 2024

It's not, I changed the name of the bucket for privacy (since at the moment it has a very permissive policy).

from s3-beam.

martinklepsch avatar martinklepsch commented on August 25, 2024

Your CORS configuration looks alright.

Is your bucket located in s3-eu-west-1? In 0.1.0 this was not customisable. If your bucket is in another zone I recommend you update to 0.2.0 which introduces an additional aws-zone parameter. See the changelog in the Readme for details.

from s3-beam.

yayitswei avatar yayitswei commented on August 25, 2024

Thanks for your update, I got it working!

For the bucket location, I had to use the generic s3 instead of s3-eu-west-1. Do you know why my bucket didn't have a zone attached to it?

Also, I had to add in

(extend-type js/HTMLCollection
  ISeqable
  (-seq [array] (array-seq array 0)))

to work around the "HTMLCollection is not seqable" error in the line (first (.getElementsByTagName (.getResponseXml (.-target res)) "Location")).

from s3-beam.

martinklepsch avatar martinklepsch commented on August 25, 2024

Do you know why my bucket didn't have a zone attached to it?

No. As far as I understand buckets must be associated with a region.

(extend-type js/HTMLCollection
  ISeqable
  (-seq [array] (array-seq array 0)))

Good catch. I probably had this in the project I was using it so I didn't notice that it'd break without that extend-type statement.

It's probably a good idea to use (aget (.getElements... ) 0) here instead of first.

PR welcome! 😄

from s3-beam.

martinklepsch avatar martinklepsch commented on August 25, 2024

You can now use [org.martinklepsch/s3-beam "0.2.1"] which uses aget instead of first.

fa32389

from s3-beam.

yayitswei avatar yayitswei commented on August 25, 2024

Thanks! You beat me to the pull request :)

from s3-beam.

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.