MacsDickinson / DoctorClockwork

Ask me anything SMS service
The Unlicense
1 stars 0 forks source link

Deserialization bug with TweetSharp #3

Open autonomatt opened 10 years ago

autonomatt commented 10 years ago

Tweets were working on /tweet. Then I tweeted from my own Twitter account and mentioned @dr_clockwork. Then this bug appeared. Can reproduce this on local box.

Nancy.RequestExecutionException: Oh noes! ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'TweetSharp.TwitterStatus' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '', line 1, position 1.

autonomatt commented 10 years ago

Might be a bug with TweetSharp code base. See http://stackoverflow.com/questions/19676216/tweetsharp-issue-while-getting-the-userprofile-and-timeline