amplify-swift: When I launch the app while the wifi is turned OFF, and turn ON the wifi, an unauthorized log message displayed
Describe the bug
When I launch the app while the wifi is turned OFF, and turn ON the wifi while I’m inside the app, an unauthorized log message displayed.
Steps To Reproduce
1. turn the wifi OFF
2. launch your app
3. turn the wifi ON
4. the data store will not sync and an unauthorized message will be displayed in XCode logs
Expected behavior
To start syncing data normally
Amplify Framework Version
1.28.0
Amplify Categories
DataStore
Dependency manager
Cocoapods
Swift version
5.0
CLI version
Not Installed
Xcode version
13.3.1
Relevant log output
2022-09-20 12:10:18.059065+0300 TeamHub Pro[316:4831] ConnectionProviderError.unauthorized
2022-09-20 12:10:18.059377+0300 TeamHub Pro[316:4831] ConnectionProviderError.unauthorized
2022-09-20 12:10:18.059522+0300 TeamHub Pro[316:4831] ConnectionProviderError.unauthorized
2022-09-20 12:10:18.070895+0300 TeamHub Pro[316:4831] [AWSModelReconciliationQueue] receiveCompletion: error: DataStoreError: Subscription item event failed with error: Unauthorized
Caused by:
APIError: Subscription item event failed with error: Unauthorized
Caused by:
unauthorized
2022-09-20 12:10:18.075637+0300 TeamHub Pro[316:4857] [AWSDataStorePlugin] StorageEngine completed with error: DataStoreError: Subscription item event failed with error: Unauthorized
Caused by:
DataStoreError: Subscription item event failed with error: Unauthorized
Caused by:
APIError: Subscription item event failed with error: Unauthorized
Caused by:
unauthorized
Is this a regression?
Yes
Regression additional context
No response
Device
iPad 5th generation
iOS Version
15.5
Specific to simulators
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 36 (18 by maintainers)
Hi @medhatIbsais-Harri, please go ahead and open a support ticket, thank you!