Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Status Code -1 in Twitter Application

 
Iab Android
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ,

I am getting this Status Code -1 for most of the API methods of Twitter4j . I am getting this exception only when I go for the authorization from the API methods like getId(), getFriendsId(), getFriendsTimeline() etc..

My Code is as follows: TwitterConnection.java

public ArrayList<User> getFriends(String token, String secret, Context context)
throws TwitterException, Exception {
ArrayList<User> twitterMapFriends = new ArrayList<User>();

try{
Twitter twitter = getTwitterObject(token, secret);
}
catch(TwitterException e){
throw e;
}
IDs followingIds = twitter.getFriendsIDs();
IDs followersIds = twitter.getFollowersIDs();
int[] followingTwitterIds = followingIds.getIDs();
int[] followerTwitterIds = followersIds.getIDs();
........
.....


My logcat is as follows:

11-09 10:22:39.974: WARN/System.err(1423): TwitterException{exceptionCode=[3b87aa43-3e3ce484], statusCode=-1, retryAfter=0, rateLimitStatus=null, version=2.1.7-SNAPSHOT(build: fd76317d18a608269f0566f73bbb827420c4c77e)}
11-09 10:22:39.974: WARN/System.err(1423): at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:309)
11-09 10:22:40.034: WARN/System.err(1423): at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:72)
11-09 10:22:40.034: WARN/System.err(1423): at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:94)
11-09 10:22:40.054: WARN/System.err(1423): at twitter4j.Twitter.getFriendsIDs(Twitter.java:1102)
11-09 10:22:40.054: WARN/System.err(1423): at twitter4j.Twitter.getFriendsIDs(Twitter.java:1095)
11-09 10:22:40.084: WARN/System.err(1423): at com.sasken.iab.twitter.TwitterConnection.getFriends(TwitterConnection.java:126)
11-09 10:22:40.105: WARN/System.err(1423): at com.sasken.iab.IABService$2$1.handleMessage(IABService.java:185)
11-09 10:22:40.124: WARN/System.err(1423): at android.os.Handler.dispatchMessage(Handler.java:99)
11-09 10:22:40.124: WARN/System.err(1423): at android.os.Looper.loop(Looper.java:123)
11-09 10:22:40.143: WARN/System.err(1423): at com.sasken.iab.IABService$2.run(IABService.java:206)
11-09 10:22:40.154: WARN/System.err(1423): at java.lang.Thread.run(Thread.java:1096)



Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic