-
Notifications
You must be signed in to change notification settings - Fork 117
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
Datastore, random crash when switching from online to offline use case #2458
Comments
Hello, Following RXJava documentation, I just patch my APP like this to avoid amplify crash ` RxJavaPlugins.setErrorHandler { throwable: Throwable? -> ` Could you tell me if it is a safe workaround ? |
Hi @antoineberthelin - can you please indicate which version of Amplify you are using? We recently made some changes that may have affected the occurrence of this error. You are certainly welcome to use RxJava's error handler to avoid a crash, but I am concerned that the underlying error could still cause issues with your application's behaviour. |
Hi @mattcreaser My Amplify version is : 2.8.4 Thanks |
Okay, seems like we still have some work to do in this area. Please stay tuned for updates 😄 |
Hello @mattcreaser yes, I think so too. |
This should be fixed in version 2.11.3 - @antoineberthelin please update and try it out! |
|
Before opening, please confirm:
Language and Async Model
Kotlin, Kotlin - Coroutines
Amplify Categories
DataStore
Gradle script dependencies
// Put output below this line
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Use case : lose the network and recover the network
Random crash on production (not easy to reproduce)
RX java crash
io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException: call. java.lang.IllegalStateException: Only a single observer allowed.
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: