Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when deleting Cognito User Group #66

Closed
tvanhens opened this issue Mar 19, 2019 · 1 comment
Closed

NPE when deleting Cognito User Group #66

tvanhens opened this issue Mar 19, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@tvanhens
Copy link

When using the most up to date dependencies:

{org.clojure/clojure {:mvn/version "1.9.0"}

 com.cognitect.aws/api         {:mvn/version "0.8.273"}
 com.cognitect.aws/cognito-idp {:mvn/version "697.2.391.0"}
 com.cognitect.aws/endpoints   {:mvn/version "1.1.11.507"}}

Cognito-idp :DeleteGroup fails in the following minimal example:

(require '[cognitect.aws.client.api :as caws])

(caws/invoke (caws/client {:api :cognito-idp})
             {:op     :CreateGroup
              :request {:GroupName  "test"
                        :UserPoolId (user-pool-id)}})

(caws/invoke (caws/client {:api :cognito-idp})
             {:op     :DeleteGroup
              :request {:GroupName  "test"
                        :UserPoolId (user-pool-id)}})

With the following exception:

{:cognitect.anomalies/category :cognitect.anomalies/fault,
 :cognitect.aws.client/throwable #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [java.io.StringReader <init> "StringReader.java" 50]}]
 :trace
 [[java.io.StringReader <init> "StringReader.java" 50]
  [clojure.data.json$read_str invokeStatic "json.clj" 278]
  [clojure.data.json$read_str doInvoke "json.clj" 274]
  [clojure.lang.RestFn invoke "RestFn.java" 439]
  [cognitect.aws.shape$json_parse invokeStatic "shape.clj" 198]
  [cognitect.aws.shape$json_parse invoke "shape.clj" 195]
  [cognitect.aws.protocols.json$eval16637$fn__16640 invoke "json.clj" 47]
  [clojure.lang.MultiFn invoke "MultiFn.java" 238]
  [cognitect.aws.client$handle_http_response invokeStatic "client.clj" 46]
  [cognitect.aws.client$handle_http_response invoke "client.clj" 40]
  [cognitect.aws.client$send_request$fn__15740 invoke "client.clj" 67]
  [clojure.core$map$fn__5583$fn__5584 invoke "core.clj" 2734]
  [clojure.core.async.impl.channels$chan$fn__5800 invoke "channels.clj" 300]
  [clojure.core.async.impl.channels.ManyToManyChannel put_BANG_ "channels.clj" 83]
  [clojure.core.async$put_BANG_ invokeStatic "async.clj" 165]
  [clojure.core.async$put_BANG_ invoke "async.clj" 158]
  [cognitect.http_client.Client$fn$reify__14362 onComplete "http_client.clj" 236]
  [org.eclipse.jetty.client.ResponseNotifier notifyComplete "ResponseNotifier.java" 193]
  [org.eclipse.jetty.client.ResponseNotifier notifyComplete "ResponseNotifier.java" 185]
  [org.eclipse.jetty.client.HttpReceiver terminateResponse "HttpReceiver.java" 454]
  [org.eclipse.jetty.client.HttpReceiver responseSuccess "HttpReceiver.java" 401]
  [org.eclipse.jetty.client.http.HttpReceiverOverHTTP messageComplete "HttpReceiverOverHTTP.java" 268]
  [org.eclipse.jetty.http.HttpParser parseHeaders "HttpParser.java" 957]
  [org.eclipse.jetty.http.HttpParser parseNext "HttpParser.java" 1188]
  [org.eclipse.jetty.client.http.HttpReceiverOverHTTP parse "HttpReceiverOverHTTP.java" 158]
  [org.eclipse.jetty.client.http.HttpReceiverOverHTTP process "HttpReceiverOverHTTP.java" 119]
  [org.eclipse.jetty.client.http.HttpReceiverOverHTTP receive "HttpReceiverOverHTTP.java" 69]
  [org.eclipse.jetty.client.http.HttpChannelOverHTTP receive "HttpChannelOverHTTP.java" 90]
  [org.eclipse.jetty.client.http.HttpConnectionOverHTTP onFillable "HttpConnectionOverHTTP.java" 113]
  [org.eclipse.jetty.io.AbstractConnection$ReadCallback succeeded "AbstractConnection.java" 273]
  [org.eclipse.jetty.io.FillInterest fillable "FillInterest.java" 95]
  [org.eclipse.jetty.io.ssl.SslConnection onFillable "SslConnection.java" 197]
  [org.eclipse.jetty.io.AbstractConnection$ReadCallback succeeded "AbstractConnection.java" 273]
  [org.eclipse.jetty.io.FillInterest fillable "FillInterest.java" 95]
  [org.eclipse.jetty.io.SelectChannelEndPoint$2 run "SelectChannelEndPoint.java" 75]
  [org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume produceAndRun "ExecuteProduceConsume.java" 213]
  [org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume run "ExecuteProduceConsume.java" 147]
  [org.eclipse.jetty.util.thread.QueuedThreadPool runJob "QueuedThreadPool.java" 654]
  [org.eclipse.jetty.util.thread.QueuedThreadPool$3 run "QueuedThreadPool.java" 572]
  [java.lang.Thread run "Thread.java" 748]]}}
@dchelimsky dchelimsky added the bug Something isn't working label Mar 22, 2019
@dchelimsky
Copy link
Contributor

Fixed in 0.8.280.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants