IOException in TwitterStream app (v5.0.3)
See original GitHub issueI 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:16 (3 by maintainers)
Top Results From Across the Web
tweetinvi
Tweetinvi is an intuitive .NET C# library to access the Twitter REST and STREAM API. It is a Portable Class Library that can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for that. This is not actually a bug. I will update the documentation to reflect this.
Hey, any updates on this? I have the same problem here with 5.0.4 😦