Twitter Streaming API (statuses/sameple) returning Incomplete read error


There is this problem I have been facing for over a week constantly now. Whenever I try to use the Streaming API endpoint I get an Incomplete read with varying bytes. The size varies a lot from 295 to 2995. Checked for other endpoints. The code works fine. Checked through a separate network but still I am getting the same error. Any help on this?