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, thanks for your reply. After i read your message, i decided to create a new console project and put this code there and continue to test it from that project. However, when i used "Tweetinvi.API", i got the same error as i stated in description. Thus, i decided to download and try "Tweetinvi 0.9.0.7 - Binaries" ( i suppose you meant these files by saying development version, right? ).

Now i have one good and one bad news. Good news is that the error that i stated in description did not occurred. And the bad news is that this time i am getting an 401 error. I am adding the output of console below.

_Unhandled Exception: System.Net.WebException: The remote server returned an erro
r: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at Streaminvi.Helpers.StreamResultGenerator.InitWebRequest(WebRequest webRequ
est)
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Func2 processObject,
Func1 generateWebRequest)
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Action1 processObjec
t, Func1 generateWebRequest)
at Streaminvi.FilteredStream.StartStreamMatchingAllConditions()_

Also, i have an idea why i am getting this error. Sadly, you may know from international news, i am living in Turkey, and recently, twitter is banned in here. And i think i might be getting this new error because of that reason.

From internet explorer, i am able to access Twitter with the help of a VPN program. But, as you know VPN programs change the region of the user to make them able to use the banned sites. And i found that you said "Please verify that the time of your machine is correctly setup (both the time and the region). Having an incorrect Time can result in receiving the 401 exception." in the documentation.

Shortly, i am getting this 401 error with or without using any VPN program.

Could this ban issue or VPN program be the reason for 401 error?


Viewing all articles
Browse latest Browse all 4126

Trending Articles



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