Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to parse JSON error using Twitterizer TwitterStatus.Show method

Running this code:

var statusResponse = TwitterStatus.Show(tweet.Id);

gives an error message: Unable to parse JSON in the statusResponse object and the ResponseObject comes back as null.

Not sure how to fix this. Any ideas?

like image 353
Mark Smithers Avatar asked Aug 27 '26 17:08

Mark Smithers


1 Answers

I run into the same issue today. It seems that you reference a newer version of Newtonsoft.Json in your project (or maybe an other NuGet package included it).

The problem can be fixed by using the Newtonsoft.Json 4.0.5.0 library that is shipped with the Twitterizer project. It needs to be that exact version.

like image 145
Stefan Born Avatar answered Aug 29 '26 19:08

Stefan Born



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!