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

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

Using LinqToTwitter ( 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.

Sanjeev Dutta
Dec 20, 2014 at 8:24 PM

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.

Dec 24, 2014 at 11:25 AM
thanks joe it's done.