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 [<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.FillInterest onClose "FillInterest.java" 150]}]
:trace
[[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.FillInterest onClose "FillInterest.java" 150]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.AbstractEndPoint onClose "AbstractEndPoint.java" 354]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.ChannelEndPoint onClose "ChannelEndPoint.java" 216]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.AbstractEndPoint doOnClose "AbstractEndPoint.java" 225]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.AbstractEndPoint close "AbstractEndPoint.java" 192]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.AbstractEndPoint close "AbstractEndPoint.java" 175]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.ssl.SslConnection$DecryptedEndPoint doClose "SslConnection.java" 1132]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.AbstractEndPoint doOnClose "AbstractEndPoint.java" 220]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.AbstractEndPoint close "AbstractEndPoint.java" 192]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.ssl.SslConnection$DecryptedEndPoint onFillable "SslConnection.java" 425]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.ssl.SslConnection onFillable "SslConnection.java" 305]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.ssl.SslConnection$2 succeeded "SslConnection.java" 159]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.FillInterest fillable "FillInterest.java" 103]
[<http://org.eclipse.jetty.io|org.eclipse.jetty.io>.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]]}}
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