You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have been using 2.4.2 version of Twitterizer API. Our application has closed unexpectedly because of Twitterizer.Streaming.TwitterStream.ParseMessage. The stack message is:
Application:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Newtonsoft.Json.JsonSerializationException Stack: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(Newtonsoft.Json.JsonReader, System.Type, Boolean) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(Newtonsoft.Json.JsonReader, System.Type) at Newtonsoft.Json.JsonConvert.DeserializeObject[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, Newtonsoft.Json.JsonSerializerSettings) at
Twitterizer.Streaming.TwitterStream.ParseMessage(System.String) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
I've realized the method TwitterStream.StreamCallback has a call of ThreadPool.QueueUserWorkItem. But ParseMessage does not have try-catch block. I've added the block in our project. I hope you will fix it then deploy.
Thanks so much to you for this valuable API. I wish you success.
Best regards,
Note: The following links explains why we need try-catch blocks on using ThreadPool.QueueUserWorkItem:
Hi,
I have been using 242 version of Twitterizer API Our application has closed unexpectedly because of TwitterizerStreamingTwitterStreamParseMessage The stack message is:
Application:
Framework Version: v4030319
Description: The process was terminated due to an unhandled exception
Exception Info: NewtonsoftJsonJsonSerializationException Stack: at NewtonsoftJsonSerializationJsonSerializerInternalReaderDeserialize(NewtonsoftJsonJsonReader, SystemType, Boolean) at NewtonsoftJsonJsonSerializerDeserializeInternal(NewtonsoftJsonJsonReader, SystemType) at NewtonsoftJsonJsonConvertDeserializeObject[System__Canon, mscorlib, Version=4000, Culture=neutral, PublicKeyToken=b77a5c561934e089]<SystemString,%20NewtonsoftJsonJsonSerializerSettings> at
TwitterizerStreamingTwitterStreamParseMessage(SystemString) at SystemThreadingExecutionContextRun(SystemThreadingExecutionContext, SystemThreadingContextCallback, SystemObject, Boolean) at SystemThreadingQueueUserWorkItemCallbackSystemThreadingIThreadPoolWorkItemExecuteWorkItem() at SystemThreadingThreadPoolWorkQueueDispatch() at SystemThreading_ThreadPoolWaitCallbackPerformWaitCallback()
I've realized the method TwitterStreamStreamCallback has a call of ThreadPoolQueueUserWorkItem But ParseMessage does not have try-catch block I've added the block in our project I hope you will fix it then deploy
Thanks so much to you for this valuable API I wish you success
Best regards,
Note: The following links explains why we need try-catch blocks on using ThreadPoolQueueUserWorkItem:
Hi,
Application: Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: Newtonsoft.Json.JsonSerializationException Stack: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(Newtonsoft.Json.JsonReader, System.Type, Boolean) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(Newtonsoft.Json.JsonReader, System.Type) at Newtonsoft.Json.JsonConvert.DeserializeObject[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, Newtonsoft.Json.JsonSerializerSettings) atI have been using 2.4.2 version of Twitterizer API. Our application has closed unexpectedly because of Twitterizer.Streaming.TwitterStream.ParseMessage. The stack message is:
Twitterizer.Streaming.TwitterStream.ParseMessage(System.String) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
I've realized the method TwitterStream.StreamCallback has a call of ThreadPool.QueueUserWorkItem. But ParseMessage does not have try-catch block. I've added the block in our project. I hope you will fix it then deploy.
Thanks so much to you for this valuable API. I wish you success.
Best regards,
Note: The following links explains why we need try-catch blocks on using ThreadPool.QueueUserWorkItem:
http://forums.asp.net/t/1742425.aspx?try+catch+not+catching+timeout
http://paulstovell.com/blog/threadpool-vs-tasks
The text was updated successfully, but these errors were encountered: