Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream cannot be read #1217

Open
sadness-mugetsu opened this issue Jul 8, 2023 · 1 comment
Open

Stream cannot be read #1217

sadness-mugetsu opened this issue Jul 8, 2023 · 1 comment

Comments

@sadness-mugetsu
Copy link

I do not know what the problem is on the internet, I did not find anything that could help on this topic, the chatgpt said that the problem is probably on the internet (but everything is fine with it). Here is my code:

            var userClient = new TwitterClient(consumerKey, consumerSecret, accessToken, accessTokenSecret);
            
            long userId = id;

            var stream = userClient.Streams.CreateFilteredStream();

            stream.AddFollow(userId);

            stream.MatchingTweetReceived += (sender, args) =>
            {
                Console.WriteLine("New Tweet");
            };
           
           //Tweetinvi.Exceptions.TwitterException: "Stream cannot be read." code -1
            await stream.StartMatchingAllConditionsAsync();

I've been working on this problem for over a week now, and I just don't have any ideas how to solve it. In general, I only need to be able to receive notifications about new tweets from a specific user if there is another way, I will be grateful if you tell me

@ByLazut
Copy link

ByLazut commented Oct 23, 2023

I need this too. I'm getting the same error. I couldn't solve the problem either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ByLazut @sadness-mugetsu and others