You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
a noob got an error below.
This error is not always happening. It just occurs without reasons(that I don't know).
Error is happening when a user tries to logout,
The process is
delete FCM Tokens by deleteToken() from '@react-native-firebase/messaging'.
clear EncryptedStorages by await EncryptedStorage.clear();
clear AsyncStorage by await AsyncStorage.clear();
then move user to the main page
but the problem is that await EncryptedStorage.clear() when the problematic phone calls the function to clear.
I am attaching error log from logcat of android studio, hopefully it helps to fix this problem.
** at com.emeraldsanto.encryptedstorage.RNEncryptedStorageModule.clear(Unknown Source:22)
// I am guessing this problem cause that clear() occurs by this line
2023-05-18 16:28:50.410 7811-7872/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules Process: com.test3app, PID: 7811 java.lang.SecurityException: Could not decrypt key. decryption failed at b1.a.c(Unknown Source:58) at b1.a.getAll(Unknown Source:49) at b1.a$b.a(Unknown Source:11) at b1.a$b.commit(Unknown Source:0) at com.emeraldsanto.encryptedstorage.RNEncryptedStorageModule.clear(Unknown Source:22) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:148) at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:147) at com.facebook.jni.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37) at java.lang.Thread.run(Thread.java:1012) Caused by: java.security.GeneralSecurityException: decryption failed at ca.c$a.b(Unknown Source:116) at b1.a.c(Unknown Source:13) at b1.a.getAll(Unknown Source:49) at b1.a$b.a(Unknown Source:11) at b1.a$b.commit(Unknown Source:0) at com.emeraldsanto.encryptedstorage.RNEncryptedStorageModule.clear(Unknown Source:22) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:148) at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:147) at com.facebook.jni.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37) at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
a noob got an error below.
This error is not always happening. It just occurs without reasons(that I don't know).
Error is happening when a user tries to logout,
The process is
but the problem is that await EncryptedStorage.clear() when the problematic phone calls the function to clear.
I am attaching error log from logcat of android studio, hopefully it helps to fix this problem.
** at com.emeraldsanto.encryptedstorage.RNEncryptedStorageModule.clear(Unknown Source:22)
// I am guessing this problem cause that clear() occurs by this line
2023-05-18 16:28:50.410 7811-7872/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules Process: com.test3app, PID: 7811 java.lang.SecurityException: Could not decrypt key. decryption failed at b1.a.c(Unknown Source:58) at b1.a.getAll(Unknown Source:49) at b1.a$b.a(Unknown Source:11) at b1.a$b.commit(Unknown Source:0) at com.emeraldsanto.encryptedstorage.RNEncryptedStorageModule.clear(Unknown Source:22) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:148) at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:147) at com.facebook.jni.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37) at java.lang.Thread.run(Thread.java:1012) Caused by: java.security.GeneralSecurityException: decryption failed at ca.c$a.b(Unknown Source:116) at b1.a.c(Unknown Source:13) at b1.a.getAll(Unknown Source:49) at b1.a$b.a(Unknown Source:11) at b1.a$b.commit(Unknown Source:0) at com.emeraldsanto.encryptedstorage.RNEncryptedStorageModule.clear(Unknown Source:22) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:148) at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:147) at com.facebook.jni.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37) at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered: