Thanks Matt,

I use look up by IDs. It seems I need to investigate what IDs am I
sending to Twitter in order to troubleshoot the issue.

Thanks for the clarification!
Toddy

On Jan 18, 5:13 pm, Matt Harris <thematthar...@twitter.com> wrote:
> Hi Toddy,
>
> The users/lookup method, which lookupUsers calls, will only return that
> error if none of the user_ids/screen_names you provide are recognised. The
> behavior of the API method is such that only the recognised
> user_ids/screen_names are returned and any which are not found are left out
> of the response.
>
> As this method is a lookup by user_id or screen_name you can compare the
> returned user_ids/screen_names with the ones you queried for. Those that are
> missing from the response were not found in our user database.
>
> You can find more information on the method in our developer documentation:
>    http://dev.twitter.com/doc/get/users/lookup
>
> Best,
> @themattharris
> Developer Advocate, Twitterhttp://twitter.com/themattharris
>
> On Tue, Jan 18, 2011 at 4:00 PM, ToddySM <todd...@gmail.com> wrote:
> > Hello,
>
> > I am trying to use lookupUsers(int[]) but occasionally I
> > receive the following exception:
>
> > 404:The URI requested is invalid or the resource requested, such as a
> > user, does not exists.
> > {"errors":[{"code":17,"message":"No user matches for specified
> > terms"}]}
> > TwitterException{exceptionCode=[47354327-0118689f], statusCode=404,
> > retryAfter=0,
> > rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=167,
> > hourlyLimit=350, resetTimeInSeconds=1295247, secondsUntilReset=1658,
> > resetTime=Mon Jan 17 07:01:03 UTC 2011}, version=2.1.7}
> >        at
> > twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:
> > 311)
> >        at
> > twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:
> > 72)
> >        at
> > twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:
> > 86)
> >        at twitter4j.Twitter.lookupUsers(Twitter.java:614)
>
> > The two questions I have are:
> > 1.) Does this mean that the whole batch failed?
> > 2.) How can I get information which user actually fails the call?
>
> > Thank you very much for the help.
> > ToddySM
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to