Search.SearchTweets(searchParameter)

Aug 29, 2014 at 5:29 PM
Edited Aug 29, 2014 at 5:37 PM
Hi,

Sometimes Search.SearchTweets(searchParameter) returns no result control wont come out of SearchTweets block. I checked in fiddler those request returns -1 in packet body. How to handle this scenario?
my program:-
int limit = RateLimit.GetCurrentCredentialsRateLimits().SearchTweetsLimit.Remaining;
for (int i = 0; i < limit; I++)
{
var tweets =Search.SearchTweets(searchParameter);
//some logic
}
Coordinator
Aug 30, 2014 at 11:28 PM
Hi,

I never ran into this case, what is the status code returned by the http request?
If the status code is a 4xx or 5xx it implies something went wrong with the request and you can get this information in the ExceptionHandler.

Please have a look into the class and let me know.

Linvi
Sep 3, 2014 at 4:00 AM
Hi,
No error, no status code that's the main problem :) for me. In response body I get -1. Here's screen for reference..
Image

Let me know your observations.

thanks
Sep 4, 2014 at 9:30 PM
Hi,
How do we get metadata(search_metadata) for search done using Search.SearchTweets(searchParameter). Is there any other way to do search with search metadata.
I am particularly interested in next_results and refresh_url metadata.

Thanks
Coordinator
Sep 8, 2014 at 3:56 PM
You are the second person to report me this problem.
I will try to investigate this when I have some time.

Linvi