• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Status code -1 for Twitter4j

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

I am getting exception for twitter.getFriends() in Twitter4j with status code as -1.

Can any one help , what might be the reason for this?
 
James Elsey
Ranch Hand
Posts: 228
Android IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post up the code you are using to invoke the API so we can see what your doing

Also post up any logs/exceptions
 
Iab Android
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI , My Code is as follows :


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

try{
if(this.twitter==null)
{
twitter = getTwitterObject(token, secret);
}

IDs followersIds = twitter.getFollowersIDs();
IDs followingIds = twitter.getFriendsIDs();
int[] followingTwitterIds = followingIds.getIDs();
int[] followerTwitterIds = followersIds.getIDs();
..................................
.............................

}}


My Logcat is as follows :


11-03 10:19:55.211: WARN/System.err(330): TwitterException{exceptionCode=[3b87aa43-3e2e58a3], statusCode=-1, retryAfter=0, rateLimitStatus=null, version=2.1.4}
11-03 10:19:55.231: WARN/System.err(330): at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:308)
11-03 10:19:55.231: WARN/System.err(330): at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:72)
11-03 10:19:55.241: WARN/System.err(330): at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:94)
11-03 10:19:55.241: WARN/System.err(330): at twitter4j.Twitter.getFriendsIDs(Twitter.java:1101)
11-03 10:19:55.251: WARN/System.err(330): at twitter4j.Twitter.getFriendsIDs(Twitter.java:1094)
11-03 10:19:55.251: WARN/System.err(330): at com.sasken.iab.twitter.TwitterConnection.getFriends(TwitterConnection.java:128)
11-03 10:19:55.251: WARN/System.err(330): at com.sasken.mapping.TwitterMapping$1.run(TwitterMapping.java:146)
11-03 10:19:55.251: WARN/System.err(330): at java.lang.Thread.run(Thread.java:1096)
11-03 10:19:55.251: INFO/System.out(330): STATUS CODE-1
11-03 10:19:56.061: WARN/InputManagerService(60): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43fcf3d8
11-03 10:20:01.731: DEBUG/dalvikvm(330): GC_FOR_MALLOC freed 9743 objects / 604392 bytes in 90ms



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic