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

Commented Unassigned: FilteredStream "get_SwallowWebExceptions" error [2124]

$
0
0
Hi,

I am getting an error while using filtered stream in Tweetinvi.API.dll, version of 0.9.0.7

The error is below:

"STREAM ERROR OCCURED: System.TypeLoadException: Could not load type '<GetClosedParameterTypesSequence>d__10' from assembly 'Tweetinvi.API, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null' because the method 'get_SwallowWebExceptions' has no implementation (no RVA).
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Func2 processObject, Func1 generateWebRequest)
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Action1 processObject, Func1 generateWebRequest)
at Streaminvi.FilteredStream.StartStreamMatchingAllConditions()"


And my code is like:

var stream = Tweetinvi.Stream.CreateFilteredStream();
foreach (string word in wordList)
{
stream.AddTrack(word);
}

stream.MatchingTweetReceived += (sender, args) =>
{
var tweet = args.Tweet;
var matchingTrack = args.MatchingTracks;

Log.DebugFormat("reading new version of the stream with {0}", matchingTrack.ElementAt(0));
};

stream.StartStreamMatchingAllConditions();

Am i missing something?
Comments: ** Comment from web user: mrvc **

Hi linvi,

I found the reason of 401 error from the ExceptionHandler. Silly me, i forgot to create "TwitterCredentials" while creating a new project. So, currently i am getting tweets by using a VPN program, i used "Tweetinvi 0.9.0.7 - Binaries" and everything is alright now.

After that, i retried using Tweetinvi.API.dll to get tweets, wondering whether i will get the first error again, and, unfortunately, i got the same error message i stated in the description.

Basicly, we can say that "Tweetinvi 0.9.0.7 - Binaries" are working well. And Tweetinvi.API.dll is not working. Well we can't say not working but calling "stream.StartStreamMatchingAllConditions();" method causes an error in Tweetinvi.API. By the way, other stream methods in Tweetinvi.API are working.

Only Tweetinvi.API's "stream.StartStreamMatchingAllConditions()" method is causing problem i stated in description.


Viewing all articles
Browse latest Browse all 4126

Trending Articles