-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
Description
In an application using a websockets
Haskell client that simply connects to a http server and prints to the terminal all messages sent by the server, I just got Parse exception: not enough bytes
. (I cannot replay this, I suspect that the other server just crashed or restarted or so.)
I believe this comes from http://hackage.haskell.org/package/io-streams-1.1.0.3/docs/System-IO-Streams-Attoparsec.html#v:parserToInputStream.
I suspect that some of the messages were cut off in the middle or so.
Anyway, it would be great if websockets could give me a more detailed error message, e.g. mentioning where some parse failed.
nbouscal, mayeranalytics and thomasjm