-
Notifications
You must be signed in to change notification settings - Fork 214
Twitter Android Crash When Redirecting #142
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
Comments
@hanalaydrus Were you able to find a solution to this? I am running into this problem as well. |
Same problem here. |
Also having this issue. Worked briefly after #121, but since a reinstallation I have not been able to restore to a working configuration. |
Gilnave's changes worked for me with one additional fix In OAuthManagerModule.java at line 410, I replaced then it worked. |
After many other changes, I ran into another issue with version 2.2.2 , like in issue 165 where the Gson parsing throws unhandled exceptions. (My personal feeling is that the introduction of Gson parsing has not helped this project). Removing Gson parsing fixed the problem -- the redirect back to the app no longer crashed when I replaced accessTokenResponse() from 2.2.2 with the updated method that follows:
In Version 2.2.2, when you surround the Gson parsing with a try/catch, it throws "com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $" for a twitter accessToken.getRawResponse() value of "oauth_token=8565211111111111111042-1111111111111111111111111111111111111qLhV&oauth_token_secret=BT1111111111111111111111111112EPq&user_id=8111111111111111111142&screen_name=StevePodell&x_auth_expires=0" (I obscured WeVote's private tokens in this example.) |
Fixes for Java/GSON syntax exception and issue #142
This issue showed in version 2.2.0. Twitter work in version 2.1.16.
I have fill the login form, after that It was trying to redirect but turns out the app crash and exited.
I specified the callback url as
http://localhost/twitter
I also try to specify with other url but nothing work.The text was updated successfully, but these errors were encountered: