New Error: JsonData instance doesn't hold a ulong

Jun 14, 2013 at 10:48 AM
I am assuming this like the previous error posted - Did twitter make yet another unannounced change?
Coordinator
Jun 14, 2013 at 1:31 PM
They switched from ulong back to string again. This time I knew about it: https://dev.twitter.com/discussions/18067

I just checked in a fix. I'm keeping the CacheAge property as a ulong, but just parsing the string.

@JoeMayo
Jul 14, 2013 at 5:02 PM
Edited Jul 14, 2013 at 5:09 PM
I'm getting this same issue on v2.1.6.0. Am I doing something wrong or is the fix above in that release?
        var statusTweets = from tweet in twitterCtx.Status
                           where tweet.Type == StatusType.User
                                 && tweet.ScreenName == "chrisp_68"
                                 && tweet.Count == 5
                           select tweet;

        IList<EmbeddedStatus> tweets = new List<EmbeddedStatus>();

        foreach (var statusTweet in statusTweets)
        {

            var embeddedStatus =
                (from tweet in twitterCtx.Status
                 where tweet.Type == StatusType.Oembed &&
                       tweet.ID == statusTweet.StatusID
                 select tweet.EmbeddedStatus)
                    .SingleOrDefault();

            tweets.Add(embeddedStatus);
        }
Jul 14, 2013 at 5:19 PM
ok, sorry to reply to my own post but ..... I have downloaded the latest code and built it and no longer get this error.