Fork me on GitHub
#aws
<
2020-04-26
>
solf12:04:02

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

solf12:04:36

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

alidlorenzo14:04:52

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

valtteri15:04:29

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

alidlorenzo15:04:50

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