Skip to content

Parse exception: not enough bytes #48

@nh2

Description

@nh2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions