ユーザーのプロファイルを読み込むために最新バージョンの TweetSharp を使用しています。まず、ListFollowerIdsFor
メソッドを使用してユーザーのすべてのフォロワーをロードします。その後、すべての ID を最大 100 個の ID のリストに分割します。
var ids = newUsersIds.Skip(i * 100).Take(100).Distinct().ToList(); var users = service.ListUserProfilesFor(新しい ListUserProfilesForOptions { UserId = ids });
そして時々私StackoverflowException
はこの線に乗ります。コール スタックの最後の 2 行:
The thread '<No Name>' (0x17a0) has exited with code 0 (0x0).
A first chance exception of type 'System.Net.WebException' occurred in System.dll
再帰
TweetSharp.dll!TweetSharp.JsonSerializer.DeserializeContent(string content, System.Type type) Line 168 + 0x1b bytes C#
TweetSharp.dll!TweetSharp.JsonSerializer.DeserializeSingle(string content, System.Type type) Line 223 + 0x11 bytes C#
TweetSharp.dll!TweetSharp.JsonSerializer.DeserializeJson(string content, System.Type type) Line 41 + 0xe bytes C#
どうすれば防ぐことができますか?