JsonData instance doesn't hold a string error message

May 29, 2013 at 4:36 AM
I am getting the JsonData instance doesn't hold a string error message right now when a embed a tweet in a post and then go to that page. Any thoughts? Things were fine earlier tonight.
May 29, 2013 at 4:38 AM
Edited May 29, 2013 at 12:31 PM
Any page with tweet throws the error. it blows up at var embeddedStatus
Follow up -
I even created a twitter application and am still getting the error - JsonData instance doesn't hold a string
creds changed for the post

My auth -
 var auth = new SingleUserAuthorizer
        {
            Credentials = new InMemoryCredentials
            {
                ConsumerKey = "sdsdfsdfsdg",
                ConsumerSecret = "sdfgsdf",
                OAuthToken = "dfsdfg",
                AccessToken = "sdgsdfgsdfg"
            }
        };
        var ctxTwitterContext = new TwitterContext(auth);

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

            string html = embeddedStatus.Html;
Coordinator
May 29, 2013 at 11:00 PM
Twitter made an unannounced change of the cache_age property in the oembed response from a string to an int. I just updated LINQ to Twitter to fix this. You can see the changes and get the updated code here:

https://linqtotwitter.codeplex.com/SourceControl/changeset/36a7d5dac9235c67dd29917e6f8ccda69aed8baa
May 30, 2013 at 12:25 AM
Edited May 30, 2013 at 12:27 AM
Thanks Joe!
I download the new source compile and uploaded the new dll - everything is back to working. Greta job!