Fork me on GitHub

Re-asking this here: Anyone knows what is this error when using aws-cli?

(def s3 (aws/client {:api :s3}))
(aws/validate-requests s3 true)

(aws/invoke s3 {:op :ListBuckets})

{:cognitect.anomalies/category :cognitect.anomalies/fault,
 :cognitect.anomalies/message nil,
  :cause nil
  [{:type java.nio.channels.ClosedChannelException
    :message nil
    :at [.FillInterest onClose "" 150]}]
  [[.FillInterest onClose "" 150]
   [.AbstractEndPoint onClose "" 354]
   [.ChannelEndPoint onClose "" 216]
   [.AbstractEndPoint doOnClose "" 225]
   [.AbstractEndPoint close "" 192]
   [.AbstractEndPoint close "" 175]
   [.ssl.SslConnection$DecryptedEndPoint doClose "" 1132]
   [.AbstractEndPoint doOnClose "" 220]
   [.AbstractEndPoint close "" 192]
   [.ssl.SslConnection$DecryptedEndPoint onFillable "" 425]
   [.ssl.SslConnection onFillable "" 305]
   [.ssl.SslConnection$2 succeeded "" 159]
   [.FillInterest fillable "" 103]
   [.ChannelEndPoint$2 run "" 118]
   [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill runTask "" 336]
   [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill doProduce "" 313]
   [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill tryProduce "" 171]
   [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill run "" 129]
   [org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread run "" 388]
   [org.eclipse.jetty.util.thread.QueuedThreadPool runJob "" 806]
   [org.eclipse.jetty.util.thread.QueuedThreadPool$Runner run "" 938]
   [java.lang.Thread run "" 834]]}}


I think it might be some kind of SSL issue? But I have no idea how to solve it. I can list the buckets using aws-cli on the command line without issue


anyone else here have a bad experience with Cognito? did you stick with it? i’m finding there’s a lot of quirks you have to workaround, e.g., username can’t be changed so you have to use preferred_username for that but then Cognito doesn’t let you add that attribute on signup until user has been confirmed, etc. and finding this out as I go cause docs aren’t too great


Cognito is pain. However once you figure it out it works. Also it’s cheaper than Auth0 and other more friendly alternatives.


yeah already getting the hang of it, just surprised - didn’t expect it to have so many kinks since AWS is well regarded. it’s also my first Clojure/Datomic API so it’s been quite a hurdle