awslabs / aws-mobile-appsync-sdk-android

Android SDK for AWS AppSync.
https://docs.amplify.aws/sdk/api/graphql/q/platform/android/
Apache License 2.0
105 stars 58 forks source link

Subscription failure #356

Open FabianReyesSP opened 3 years ago

FabianReyesSP commented 3 years ago

Describe the bug Use to example EventApp from AWS AppSync, Subscriptions return a error:

E/ViewEventActivity: Subscription failure com.apollographql.apollo.exception.ApolloException: Failed to parse subscription response: {errors=[{errorType=BadRequestException, message=Subscriptions over MQTT is not supported.}]} at com.apollographql.apollo.internal.interceptor.AppSyncSubscriptionInterceptor$1$1.run(AppSyncSubscriptionInterceptor.java:105) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference at com.apollographql.apollo.internal.interceptor.AppSyncSubscriptionInterceptor$1$1.run(AppSyncSubscriptionInterceptor.java:79) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)  at java.lang.Thread.run(Thread.java:923) 

To Reproduce Steps to reproduce the behavior:

  1. Go to Dashboard Event
  2. Click on Event Created
  3. Type a comment and click to ADD COMMENT
  4. See error in console.

Screenshots

Screen Shot 2021-07-07 at 19 21 11

Environment(please complete the following information):

Device Information (please complete the following information):