roshangit8 / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

Issue with twitter: Unable to retrieve the access token. Status: 401. #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use the latest socialauth-android version from here (2.0): 
https://code.google.com/p/socialauth-android/downloads/list

It perfectely worked some days ago. Today I checked my android app and founded, 
it can't able to use twitter. 

I'm getting error when trying to connect to twitter:

04-06 21:01:18.121: I/SocialAuthManager(15493): Connecting provider : twitter
04-06 21:01:18.121: I/TwitterImpl(15493): Verifying the authentication response 
from provider
04-06 21:01:18.121: I/OAuth1(15493): Verifying the authentication response from 
provider
04-06 21:01:18.991: W/System.err(15493): 
org.brickred.socialauth.exception.SocialAuthException: Unable to retrieve the 
access token. Status: 401
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.util.OAuthConsumer.getAccessToken(OAuthConsumer.java:269
)
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.oauthstrategy.OAuth1.verifyResponse(OAuth1.java:97)
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.oauthstrategy.OAuth1.verifyResponse(OAuth1.java:107)
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.provider.TwitterImpl.doVerifyResponse(TwitterImpl.java:1
67)
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.provider.TwitterImpl.verifyResponse(TwitterImpl.java:158
)
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:183)
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:243)
04-06 21:01:18.991: W/System.err(15493):    at 
java.lang.Thread.run(Thread.java:856)
04-06 21:01:18.991: D/SocialAuthError(15493): 
org.brickred.socialauth.exception.SocialAuthException: Unable to retrieve the 
access token. Status: 401
04-06 21:01:18.991: W/System.err(15493): 
org.brickred.socialauth.android.SocialAuthError: Unknown Error
04-06 21:01:18.991: W/System.err(15493):    at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:263)
04-06 21:01:18.991: W/System.err(15493):    at 
java.lang.Thread.run(Thread.java:856)
04-06 21:01:18.991: D/Share-Bar(15493): Unknown Error

I've checked, callback url, consumer key, and permission(Read and Write). 

What is the problem? Why can't access the token?
Some days ago it was possible to send messages, even images, now nothing works.

Original issue reported on code.google.com by chistovskis on 6 Apr 2013 at 6:14

GoogleCodeExporter commented 9 years ago
Hi , we are releasing a patch due toc henhge in  twitter api. Thanks for 
patience

Original comment by vineet.a...@3pillarglobal.com on 7 Apr 2013 at 9:14

GoogleCodeExporter commented 9 years ago

Original comment by vineet.a...@3pillarglobal.com on 7 Apr 2013 at 9:27

GoogleCodeExporter commented 9 years ago
Hi please find the patch

Kindly do a test for us and provide us feedback over new sdk. We will then 
officially release this sdk.

Original comment by vineet.a...@3pillarglobal.com on 7 Apr 2013 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I have just tested patch in my application. All works fine. I have 
successfully sended message and upload picture. No errors detected. Thank you 
for your quick response! 

Original comment by chistovskis on 7 Apr 2013 at 5:06

GoogleCodeExporter commented 9 years ago
for me, twitter is working fine now, but for facebook have the problem. thanks 
for helping us :)

04-08 11:59:28.220: I/SocialAuthManager(31768): Connecting provider : facebook
04-08 11:59:28.220: I/FacebookImpl(31768): Retrieving Access Token in verify 
response function
04-08 11:59:28.220: I/OAuth2(31768): Verifying the authentication response from 
provider
04-08 11:59:28.220: W/System.err(31768): 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null
04-08 11:59:28.225: W/System.err(31768):    at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:114)
04-08 11:59:28.225: W/System.err(31768):    at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:102)
04-08 11:59:28.225: W/System.err(31768):    at 
org.brickred.socialauth.provider.FacebookImpl.doVerifyResponse(FacebookImpl.java
:164)
04-08 11:59:28.225: W/System.err(31768):    at 
org.brickred.socialauth.provider.FacebookImpl.verifyResponse(FacebookImpl.java:1
54)
04-08 11:59:28.225: W/System.err(31768):    at 
org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:183)
04-08 11:59:28.225: W/System.err(31768):    at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:249)
04-08 11:59:28.225: W/System.err(31768):    at 
java.lang.Thread.run(Thread.java:856)
04-08 11:59:28.225: D/SocialAuthError(31768): 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null
04-08 11:59:28.235: D/WebCore(31768): uiOverrideUrlLoading: 
shouldOverrideUrlLoading() returnstrue

Original comment by onee...@gmail.com on 8 Apr 2013 at 10:08

GoogleCodeExporter commented 9 years ago
Hi oneenam, 

Its working fine at my end. Can you please send me your code to check. We never 
face any issues with facebook as of now.

Original comment by vineet.a...@3pillarglobal.com on 11 Apr 2013 at 6:59

GoogleCodeExporter commented 9 years ago
HI Onenam i am closing this issue please follow issue no 49 and send me ur code 
at vineet.aggarwal@3pillarglobal.com

Original comment by vineet.a...@3pillarglobal.com on 11 Apr 2013 at 7:01

GoogleCodeExporter commented 9 years ago
please check your mail, i sent my code and exceptions log and related 
information. thanks a lot for your help.

Original comment by onee...@gmail.com on 11 Apr 2013 at 7:34

GoogleCodeExporter commented 9 years ago
i also have the same problem like onee.... facebook verification code is 
null....please reply me...

Original comment by khushbu....@gmail.com on 30 Apr 2013 at 11:57

GoogleCodeExporter commented 9 years ago
Hi,I am getting the same error of 
org.brickred.socialauth.exception.SocialAuthException: Verification code is 
null,for facebook.Plz help.

Original comment by shrutik....@gmail.com on 27 Jun 2013 at 11:20

GoogleCodeExporter commented 9 years ago
please check the latest sdk 2.5

Original comment by l...@3pillarglobal.com on 27 Jun 2013 at 12:04