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

Appsync subscriptions error handler is not called consistently #513

Open
ghost opened this issue Jan 27, 2020 · 0 comments
Open

Appsync subscriptions error handler is not called consistently #513

ghost opened this issue Jan 27, 2020 · 0 comments
Labels
subscription-link Related to AppSync Subscription Link issues to-be-reproduced We need to reproduce this issue

Comments

@ghost
Copy link

ghost commented Jan 27, 2020

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
When appsync-sdk loses internet with an active subscription, the error handler is not called immediately. After a timeout of about 5 minutes, appsync-sdk will begin retries. After some amount of retries, the error handler is sometimes called, but this is not consistent.

To see when appsync-sdk begins retries, set DEBUG=aws-appsync:* in environment variables.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Create a successful appsync subscription and remove internet. Wait for up to 15 minutes, and repeat to see if the error handler is called.

What is the expected behavior?
When appsync-sdk loses internet with an active subscription, there should be a timeout, but after some time, the error handler should be called.

Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
Nodejs 12.14.0, windows 10 pro 1909, appsync-sdk 3.0.2.
Previous versions have not been tried.

This is mostly an issue for logging reasons. We currently have no idea when appsync-sdk has lost it's internet connection, or if a subscription has failed for a certain amount of time.

@elorzafe elorzafe added to-be-reproduced We need to reproduce this issue subscription-link Related to AppSync Subscription Link issues labels Apr 15, 2020
@elorzafe elorzafe added this to the Subscription link bug fixes milestone Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subscription-link Related to AppSync Subscription Link issues to-be-reproduced We need to reproduce this issue
Projects
None yet
Development

No branches or pull requests

1 participant