GoldenOwlAsia / react-native-twitter-signin

MIT License
167 stars 303 forks source link

Authorize Failed when Press Authorize in Twitter #190

Open paradyo opened 2 years ago

paradyo commented 2 years ago

Hey,

I got an error every 1 per 10 time when trying to authorize person via Twitter. The error in console says: Error: Authorize failed. Whereas the user clicks on the Authorize button.

I also got the same error when user clicks cancel in authorize screen. I don't know why I am getting this.

This is only happening on the real device.

This is a screenshot of that error in android: https://aws1.discourse-cdn.com/twitter/original/3X/d/7/d7a7696403d3e612098d64e48e7cfa2a73ca215e.jpeg

This is twittercommunity post: https://twittercommunity.com/t/action-can-not-completed-when-try-to-login/170260

This is a complete error log.

{ "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" }

ZohaibAhmad786 commented 1 year ago

Same