Subscription query hangs
nicholas-santos opened this issue · 1 comments
nicholas-santos commented
The subscription query in the guide hangs
subscription AddedCommentByAuthor{
addedCommentByAuthor(author:"Nadia"){
id
author
content
}
}
jbailey2010 commented
Can you share what your mutation was? AppSync requires that the filter used in the subscription be in the response of the mutation, and it can seem like it's hanging if it isn't there.
Even in a happy case, subscriptions will appear to 'hang' until a mutation is executed. It's a long-running connection, so to test it on the AppSync console, you'll need two tabs open:
- Tab 1 - execute the subscription
- Tab 2 - execute the mutation
- You should now see a response in tab 1.