amplify-js: DataStore upgrading from 2.2.6 to 2.2.7+ breaks realtime data
Describe the bug After upgrading the DataStore from version 2.2.6 to 2.2.7, the following error is printed in the console right after the DataStore is ready:
[DEBUG] 46:46.527 AWSAppSyncRealTimeProvider - closing WebSocket...
DataStore version 2.2.7 introduces some bug fix I need:
- @aws-amplify/datastore: call disconnectionHandler on subscription error
This issue persists even in the latest DataStore version (2.2.9), and while having all the other Amplify packages up-to-date.
I have these packages installed:
- @aws-amplify/analytics@3.2.6
- @aws-amplify/auth@3.3.4
- @aws-amplify/core@3.4.5
- @aws-amplify/datastore@2.2.7
- @aws-amplify/pushnotification@3.1.9
- amazon-cognito-identity-js@4.3.3
Downgrading the DataStore version to 2.2.6 fixes this issue, but leaves me without the bug fixes.
Expected behavior I expect realtime data to keep working after upgrading to the latest version of the DataStore.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 66 (31 by maintainers)
@mdoesburg just merged the PR, so please try with the latest unstable versions
@iartemiev Yeah go ahead and close it.
Got it, thank you. I will attempt to reproduce and will get back to you if I need more info