tweetinvi: IOException in TwitterStream app (v5.0.3)

I was trying to let my TwitterStream application run a longer time (overnight, so my Desktop PC switched into some kind of mode where the network connections are cut) while catching TwitterException and handling it. But there was an IOException I did not expect:

System.IO.IOException: The response ended prematurely.
   at Tweetinvi.Streams.StreamTask.RunStreamAsync()
   at Tweetinvi.Streams.StreamTask.StartAsync()
   at Tweetinvi.Streams.Helpers.StreamResultGenerator.StartAsync(Func`2 onJsonReceivedCallback, Func`1 createTwitterRequest)
   at Tweetinvi.Streams.Helpers.StreamResultGenerator.StartAsync(Action`1 onJsonReceivedCallback, Func`1 createTwitterRequest)
   at Tweetinvi.Streams.FilteredStream.StartMatchingAnyConditionAsync()
   at TwitterDotNet.LiveHashtagLogger.Run() in /a/b/c/d.cs:line 36
   at TwitterDotNet.Program.Main(String[] args) in /a/b/c/e.cs:line 27
Unhandled exception. System.IO.IOException: The response ended prematurely.
   at Tweetinvi.Streams.StreamTask.RunStreamAsync()
   at Tweetinvi.Streams.StreamTask.StartAsync()
   at Tweetinvi.Streams.Helpers.StreamResultGenerator.StartAsync(Func`2 onJsonReceivedCallback, Func`1 createTwitterRequest)
   at Tweetinvi.Streams.Helpers.StreamResultGenerator.StartAsync(Action`1 onJsonReceivedCallback, Func`1 createTwitterRequest)
   at Tweetinvi.Streams.FilteredStream.StartMatchingAnyConditionAsync()
   at a.b.Run() in /a/b/c/d.cs:line 36
   at a.Program.Main(String[] args) in /a/b/c/e.cs:line 27
   at a.Program.<Main>(String[] args)

Version Used: 5.0.3

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Thank you for that. This is not actually a bug. I will update the documentation to reflect this.