算术运算导致溢出 - TweetSharp

时间:2015-08-07 05:58:59

标签: twitter tweetsharp

代码:

TwitterService twitter = new TwitterService(oauth_consumer_key, oauth_consumer_secret);
twitter.AuthenticateWith(oauth_consumer_key, oauth_consumer_secret, oauth_token, oauth_token_secret);
TwitterSearchResult res = twitter.Search(new SearchOptions { Q = hashtag, Count = 10, MaxId = max_id });

错误:

   Arithmetic operation resulted in an overflow

堆栈跟踪:

at Newtonsoft.Json.Utilities.ConvertUtils.Int32Parse(Char[] chars, Int32 start, Int32 length)
at Newtonsoft.Json.JsonTextReader.ParseNumber()
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.ReadInternal()
at Newtonsoft.Json.JsonReader.ReadAsInt32Internal()
at Newtonsoft.Json.JsonTextReader.ReadAsInt32()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)

我希望获得包含特定关键字的所有推文。有时响应是正确的,有时我会收到此错误。

0 个答案:

没有答案