Received an unexpected EOF or 0 bytes from the transport stream.

Dec 17, 2014 at 9:50 AM
Hi Joe,

Using LinqToTwitter (2.1.9.0) while getting data from twitter I am getting below error in production server.

"Received an unexpected EOF or 0 bytes from the transport stream."

Thanks for your kind support.

Thanks,
Sanjeev Dutta
Coordinator
Dec 20, 2014 at 7:24 PM
Hi,

I would need more information to understand the problem properly. e.g. what type of query and maybe a small snippet of code.

That said, I'll take a guess that you're running a Stream of some type. Twitter will occasionally disconnect from your stream, which would cause you to receive an exception like this. If this happens, close your stream, create a new instance of TwitterContext, and re-start the stream. If you want to make sure you get all tweets from the time of closure to the first tweet that arrives on the new stream, keep track of the last Status ID and use the REST API to get the missing tweets.

@JoeMayo
Dec 24, 2014 at 10:25 AM
thanks joe it's done.