Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

Commented Issue: Tweet favourite [2096]

$
0
0
I am trying to mark a tweet as a favourite, I have the authorization token and am able to view profile details. When I search for tweets I get back list but I am unable to mark any as a favourite, I receive and exception and a message "Value cannot be null. Parameter name: s"

System.ArgumentNullException was unhandled by user code
HResult=-2147467261
Message=Value cannot be null.
Parameter name: s
Source=mscorlib
ParamName=s
StackTrace:
at System.IO.StringReader..ctor(String s)
at Newtonsoft.Json.Linq.JObject.Parse(String json)
at TweetinviLogic.Wrapper.JObjectStaticWrapper.GetJobjectFromJson(String json)
at TweetinviCredentials.TwitterAccessor.ExecutePOSTQuery(String query)
at TweetinviCredentials.TwitterAccessor.TryExecutePOSTQuery(String query, JsonConverter[] converters)
at TweetinviControllers.Tweet.TweetQueryExecutor.FavouriteTweet(ITweetDTO tweet)
at TweetinviControllers.Tweet.TweetController.FavoriteTweet(ITweetDTO tweetDTO)
at TweetinviLogic.Tweet.Favourite()
at TwitterBot.UnitTest1.search() in c:\Users\andrew\Documents\Visual Studio 2013\Projects\TwitterBot\TwitterBot\UnitTest1.cs:line 89
InnerException:

__Update__:
It appears that only some tweet throw the exception over half.
Comments:

Hi,


 


I am working on the problem currently.


In your case, using either search solution should not affect the ability to favourite a tweet. I believe your problem comes from the fact that when you do the search with the hashtag you do not receive the same tweet (check the tweet ID).


 


Linvi


Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>