Skip to content
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

SSL example fails with parse exception #56

Open
patrickt opened this issue Jan 21, 2014 · 6 comments
Open

SSL example fails with parse exception #56

patrickt opened this issue Jan 21, 2014 · 6 comments

Comments

@patrickt
Copy link

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
Copy link

dmjio commented Jul 30, 2014

I get the same thing on windows.

@istathar
Copy link
Member

Replicated on GHC 7.8

@istathar
Copy link
Member

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
Copy link
Contributor

Seeing this in the Snap test suite also.

@istathar
Copy link
Member

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

@gregorycollins
Copy link
Contributor

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.

@istathar istathar added this to the 0.8.1 milestone Jan 20, 2015
@istathar istathar removed this from the 0.8.1 milestone Apr 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants