Skip to content

Subscription failure #356

@FabianReyesSP

Description

@FabianReyesSP

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):

  • AppSync SDK Version: 3.6.1
  • Android Studio Version: 4.2.2

Device Information (please complete the following information):

  • Device: OnePlus IN2020
  • Android Version: 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions