Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SSL example fails with parse exception #56

Open
patrickt opened this Issue · 6 comments

4 participants

@patrickt

Checking out the source and loading the SSL test file fails with "not enough bytes".

cabal repl
Network.Http.Client> :l tests/SecureSocketsSnippet.hs
Snippet> main
Exception: Parse exception: not enough bytes

I am running the Haskell Platform on 32-bit OS X using GHC 7.6.3.

@dmjio

I get the same thing on windows.

@afcowie
Owner

Replicated on GHC 7.8

@afcowie
Owner

For what it's worth,

 λ> get "https://github.com/" debugHandler

works. So I'm not immediately clear what's up with that test snippet.

AfC

@gregorycollins

Seeing this in the Snap test suite also.

@afcowie
Owner

@gregorycollins oh, that's not cool. I'll try and have another go at finding this.

@gregorycollins

After doing some digging here: I'm not sure I'm hitting the same error in the snap test suite (we send proper responses there) but the reason the check code is failing is that the github api server is sending headers/status lines delimited by LF only rather than CR+LF.

@afcowie afcowie added this to the 0.8.1 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.