New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProtocolException: Unexpected end of stream #7880
Comments
You should check the server requests and responses to understand what is happening. One possibility would be that the length indicated in the response "Content-Length" is larger than the length of the actual data in the response. |
OK, so I have added the And: If indeed the two lengths were to be different, what exactly does that mean and what is the fix? I have added a screenshot of the |
"Unexpected end of stream" normally means that the server response indicated it will provide a certain number of bytes (specified in the That's a server-side issue (i.e., it's either closing the connection when it shouldn't, or it's specifying the |
OK, thank you for the explanation! |
I am using
ExoPlayer
to stream mp3s using a foregroud service. While this works most of the time, I have some users that experience sudden stops of the streams. The problem is not that the Internet gets disconnected (that's verified). I was able to capture the following logcat from one live device where the problem is occuring:Could you give me a hint of what is happening here?
The text was updated successfully, but these errors were encountered: