Hey,
I am using react-native-twitter-signin/twitter-signin library for my application. But sometimes when I want to login with Twitter it throws an error. The complete error log and screenshot is below.
{
"nativeStackAndroid": [
{
"lineNumber": 98,
"file": "AuthHandler.java",
"methodName": "handleOnActivityResult",
"class": "com.twitter.sdk.android.core.identity.AuthHandler"
},
{
"lineNumber": 171,
"file": "TwitterAuthClient.java",
"methodName": "onActivityResult",
"class": "com.twitter.sdk.android.core.identity.TwitterAuthClient"
},
{
"lineNumber": 121,
"file": "TwitterSigninModule.java",
"methodName": "onActivityResult",
"class": "com.goldenowl.twittersignin.TwitterSigninModule"
},
{
"lineNumber": 333,
"file": "ReactContext.java",
"methodName": "onActivityResult",
"class": "com.facebook.react.bridge.ReactContext"
},
{
"lineNumber": 785,
"file": "ReactInstanceManager.java",
"methodName": "onActivityResult",
"class": "com.facebook.react.ReactInstanceManager"
},
{
"lineNumber": 90,
"file": "ReactDelegate.java",
"methodName": "onActivityResult",
"class": "com.facebook.react.ReactDelegate"
},
{
"lineNumber": 113,
"file": "ReactActivityDelegate.java",
"methodName": "onActivityResult",
"class": "com.facebook.react.ReactActivityDelegate"
},
{
"lineNumber": 70,
"file": "ReactActivity.java",
"methodName": "onActivityResult",
"class": "com.facebook.react.ReactActivity"
},
{
"lineNumber": 7762,
"file": "Activity.java",
"methodName": "dispatchActivityResult",
"class": "android.app.Activity"
},
{
"lineNumber": 4603,
"file": "ActivityThread.java",
"methodName": "deliverResults",
"class": "android.app.ActivityThread"
},
{
"lineNumber": 4652,
"file": "ActivityThread.java",
"methodName": "handleSendResult",
"class": "android.app.ActivityThread"
},
{
"lineNumber": 49,
"file": "ActivityResultItem.java",
"methodName": "execute",
"class": "android.app.servertransaction.ActivityResultItem"
},
{
"lineNumber": 108,
"file": "TransactionExecutor.java",
"methodName": "executeCallbacks",
"class": "android.app.servertransaction.TransactionExecutor"
},
{
"lineNumber": 68,
"file": "TransactionExecutor.java",
"methodName": "execute",
"class": "android.app.servertransaction.TransactionExecutor"
},
{
"lineNumber": 1948,
"file": "ActivityThread.java",
"methodName": "handleMessage",
"class": "android.app.ActivityThread$H"
},
{
"lineNumber": 106,
"file": "Handler.java",
"methodName": "dispatchMessage",
"class": "android.os.Handler"
},
{
"lineNumber": 214,
"file": "Looper.java",
"methodName": "loop",
"class": "android.os.Looper"
},
{
"lineNumber": 7050,
"file": "ActivityThread.java",
"methodName": "main",
"class": "android.app.ActivityThread"
},
{
"lineNumber": -2,
"file": "Method.java",
"methodName": "invoke",
"class": "java.lang.reflect.Method"
},
{
"lineNumber": 494,
"file": "RuntimeInit.java",
"methodName": "run",
"class": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller"
},
{
"lineNumber": 965,
"file": "ZygoteInit.java",
"methodName": "main",
"class": "com.android.internal.os.ZygoteInit"
}
],
"userInfo": null,
"message": "Authorize failed.",
"code": "USER_CANCELLED",
"line": 50,
"column": 1119,
"sourceURL": "index.android.bundle"
}
As you can see at the screenshot, there is an android main system error. This error in Turkish right now because of my phone language but in english it says: ‘Action can not completed.’
What is your advice? Is there any solution or workaround for this problem? This error not throwing everytime I tried to login via Twitter. Mostly the error throwing when I firstly open the app and trying to login via Twitter.
Thanks,
Waiting for your response.