Please provide the following:
- SDK Version: 34
- Platforms(Android/iOS/web/all): Android (all, but tested on Android)
Hello,
Ok, so the weirdest thing is happening. I have no idea where to go from here, help please.
Ok so anyway, everything works fine when I’m developing within the Expo app. But when the following line is hit on my prod/Heroku environment, my app just dies
const tokenInLocalStorage =
(await SecureStore.getItemAsync("jwt")) ?? null;
And, given that this error isn’t thrown in my dev environment, I went through a lot of trouble actually catching this error (ie, I wrapped the whole method in a try..catch
, deployed my backend with a custom route, and caught the error at that route from the client try..catch
when sending the error in the post body).
Anyway. What the heck is going on? Here is the error:
{
"framesToPop":1,
"nativeStackAndroid":[
{
"methodName":"engineDoFinal",
"lineNumber":517,
"file":"AndroidKeyStoreCipherSpiBase.java"
},
{
"methodName":"doFinal",
"lineNumber":2055,
"file":"Cipher.java"
},
{
"methodName":"decryptItem",
"lineNumber":433,
"file":"SecureStoreModule.java"
},
{
"methodName":"readJSONEncodedItem",
"lineNumber":188,
"file":"SecureStoreModule.java"
},
{
"methodName":"getItemImpl",
"lineNumber":159,
"file":"SecureStoreModule.java"
},
{
"methodName":"getValueWithKeyAsync",
"lineNumber":147,
"file":"SecureStoreModule.java"
},
{
"methodName":"invoke",
"lineNumber":-2,
"file":"Method.java"
},
{
"methodName":"invokeExportedMethod",
"lineNumber":97,
"file":"ExportedModule.java"
},
{
"methodName":"callMethod",
"lineNumber":117,
"file":"NativeModulesProxy.java"
},
{
"methodName":"invoke",
"lineNumber":-2,
"file":"Method.java"
}
],
"userInfo":null,
"code":"E_SECURESTORE_DECRYPT_ERROR",
"line":22,
"column":1799,
"sourceURL":"/data/user/0/com.myapp.app/files/35.0.0/cached-bundle-experience-%40myname%2Fchattenger496511176-35.0.0"
}
Here is a similar error buuut, I can’t see a reply to the OP. No idea how to resolve this.