awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
921 stars 266 forks source link

App crashes in AppSyncRealTimeSubscriptionHandshakeLink.prototype._timeoutStartSubscriptionAck #601

Closed annucy closed 3 years ago

annucy commented 3 years ago

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

What is the current behavior? I am using awss-mobile-appsync-sdk-js and use Subscriptions (with buildSubscription helper) on componenetDidMount() method. The moment internet connectivety goes off when user is on this page, app crashes with the following error. Screenshot_20201121-214258

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Explained above I am using awss-mobile-appsync-sdk-js and use Subscriptions (with buildSubscription helper) on componenetDidMount() method. The moment internet connectivity goes off when user is on this page, app crashes with the following error. Screenshot_20201121-214258

What is the expected behavior? App should not crash and subscription should start once connectivety is back.

Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions? "aws-appsync": "^4.0.1", "aws-appsync-react": "^4.0.1", "apollo-boost": "^0.3.1", "react-apollo": "^2.5.8", "react": "16.9.0", "react-native": "0.61.5",

annucy commented 3 years ago

Opening another one.