Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: GetUserTimelineAsync throws exception

$
0
0
Hi,

Great APIs! Just started using it to get timelines for about three or four handles. The call sequence looks like this:
  1. TwitterCredentials.SetCredentials(...);
  2. user = await UserAsync.GetUserFromScreenName(handle);
  3. timeline = await user.GetUserTimelineAsync(10);
  4. wait 30s, repeat 2. and 3. for next handle
The calls succeed in 1., 2., 3., 2., 3., 2., and fails usually on the second or third call to GetUserTimelineAsync(). The exception was thrown in Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.WebHelper.GetWebResponse(), with the exception:

-2146233088
{System.Net.WebException: The remote server returned an error: NotFound...

I reordered the handles and it fails for different handles but usually on the second or third time it's called, so it doesn't seem to be handle-dependent. From that point on all calls would fail.

Questions:
  1. Am I not using the APIs correctly?
  2. If not, what are the possible causes and solutions?
Thanks in advance.

Viewing all articles
Browse latest Browse all 4126

Trending Articles