Skip to content

Apollo realtime subscription not working unless we remove "/connect" path #3102

@niqo01

Description

@niqo01

Before opening, please confirm:

Language and Async Model

Kotlin - Coroutines

Amplify Categories

GraphQL API

Gradle script dependencies

com.amplifyframework:apollo-appsync:1.2.0

Environment information

------------------------------------------------------------
Gradle 8.14.3
------------------------------------------------------------

Build time:    2025-07-04 13:15:44 UTC
Revision:      e5ee1df3d88b8ca3a8074787a94f373e3090e1db

Kotlin:        2.0.21
Groovy:        3.0.24
Ant:           Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM:  21.0.7 (Azul Systems, Inc. 21.0.7+6-LTS)
Daemon JVM:    /Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home (no JDK specified, using current Java home)
OS:            Mac OS X 15.5 aarch64


Please include any relevant guides or documentation you're referencing

https://docs.amplify.aws/android/build-a-backend/data/aws-appsync-apollo-extensions/

Describe the bug

I am using AWS AppSync Apollo Extensions com.amplifyframework:apollo-appsync:1.2.0

I could not get the subscription part working, after debugging, cloning the repo and using chatgpt, I found out that if I remove "/connect" from the "realtime" url in the source code here:

Then subscription works fine. I don't know why.

Also, not sure if this is relevant but I am using HTTP header authorization instead of appending a query parameter.

I have spent many hours on this issue, if anyone else got it as well, you are welcome for the fix.

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


Configuration File

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    apollo appsyncIssues related to the Apollo AppSync ExtensionsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions