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

Edited Issue: Task Cancellation : Have a look into it [2558]

$
0
0
n case you fancy looking at yet another problem…
Since running it on the server I’ve had one exception from the REST Poller:
2015-04-23 16:28:00 - TwitterRestPoller.Program: Error: Exception whilst fetching User Direct Messages (Inbound). Exception:
System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Tweetinvi.WebLogic.HttpClientWebHelper.GetResponseMessageFromWebRequest(WebRequest webRequest)
at Tweetinvi.WebLogic.WebRequestExecutor.GetStreamFromHttpClient(HttpWebRequest webRequest)
at Tweetinvi.WebLogic.WebRequestExecutor.ExecuteWebRequest(HttpWebRequest webRequest)
at Tweetinvi.WebLogic.TwitterRequester.ExecuteQuery(ITwitterQuery twitterQuery)
at Tweetinvi.WebLogic.TwitterRequestHandler.ExecuteQuery(String queryURL, HttpMethod httpMethod, IEnumerable`1 queryParameters)
at Tweetinvi.Credentials.TwitterAccessor.ExecuteQuery(String query, HttpMethod method)
at Tweetinvi.Credentials.TwitterAccessor.ExecuteGETQuery[T](String query, JsonConverter[] converters)
at Tweetinvi.Controllers.Messages.MessageQueryExecutor.GetLatestMessagesReceived(Int32 maximumMessages)
at Tweetinvi.Controllers.Messages.MessageController.GetLatestMessagesReceived(Int32 maximumMessages)
at Tweetinvi.Message.GetLatestMessagesReceived(Int32 maximumMessages)
at TwitterRestPoller.Program.fetchUserDirectMessagesInbound(TwitterAccount user) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\Comms Manager Debug 130\TwitterRestPoller\Program.cs:line 298
at TwitterRestPoller.Program.pollUserDirectMesagesInbound(TwitterAccount user) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\Comms Manager Debug 130\TwitterRestPoller\Program.cs:line 279
---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---

I’ve checked in the database & this has happened a total of 40 times, with the first happening 2 days ago.
Here’s one that happened whilst running a version of TweetInvi I’ve compiled (so you get line numbers):
Exception whilst fetching User Direct Messages (Inbound). Exception:
System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Tweetinvi.WebLogic.HttpClientWebHelper.GetResponseMessageFromWebRequest(WebRequest webRequest) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.WebLogic\HttpClientWebHelper.cs:line 82
at Tweetinvi.WebLogic.WebRequestExecutor.GetStreamFromHttpClient(HttpWebRequest webRequest) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.WebLogic\WebRequestExecutor.cs:line 162
at Tweetinvi.WebLogic.WebRequestExecutor.ExecuteWebRequest(HttpWebRequest webRequest) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.WebLogic\WebRequestExecutor.cs:line 90
at Tweetinvi.WebLogic.TwitterRequester.ExecuteQuery(ITwitterQuery twitterQuery) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.WebLogic\TwitterRequester.cs:line 25
at Tweetinvi.WebLogic.TwitterRequestHandler.ExecuteQuery(String queryURL, HttpMethod httpMethod, IEnumerable`1 queryParameters) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.WebLogic\TwitterRequestHandler.cs:line 64
at Tweetinvi.Credentials.TwitterAccessor.ExecuteQuery(String query, HttpMethod method) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.Credentials\TwitterAccessor.cs:line 371
at Tweetinvi.Credentials.TwitterAccessor.ExecuteGETQuery[T](String query, JsonConverter[] converters) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.Credentials\TwitterAccessor.cs:line 138
at Tweetinvi.Controllers.Messages.MessageQueryExecutor.GetLatestMessagesReceived(Int32 maximumMessages) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.Controllers\Messages\MessageQueryExecutor.cs:line 47
at Tweetinvi.Controllers.Messages.MessageController.GetLatestMessagesReceived(Int32 maximumMessages) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi.Controllers\Messages\MessageController.cs:line 28
at Tweetinvi.Message.GetLatestMessagesReceived(Int32 maximumMessages) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\TweetInvi\Development - 0.9.7.x\Tweetinvi\Message.cs:line 76
at TwitterRestPoller.Program.fetchUserDirectMessagesInbound(TwitterAccount user) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\Comms Manager Debug 130\TwitterRestPoller\Program.cs:line 298
at TwitterRestPoller.Program.pollUserDirectMesagesInbound(TwitterAccount user) in c:\Users\Josh\Documents\Visual Studio 2013\Projects\Comms Manager Debug 130\TwitterRestPoller\Program.cs:line 279
---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>