Skip to content

Stream cannot be read  #1217

@sadness-mugetsu

Description

@sadness-mugetsu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions