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

Exception: SSL read() error: error:0A000126:SSL routines::unexpected eof while reading. #980

Closed
abhsrivastava opened this issue Apr 17, 2023 · 2 comments

Comments

@abhsrivastava
Copy link

Google brought me to this thread.

I am using Cohttp Async to make a call to this URL https://api.weather.gov/points/48.0698,-121.8151 (it opens fine in browsers)

However when I do Client.get I get an error

Exception: SSL read() error: error:0A000126:SSL routines::unexpected eof while reading.

Please tell me how to troubleshoot. My code base is here just in case anyone wants to have a look at it.

@mseri
Copy link
Collaborator

mseri commented Apr 17, 2023

I could not yet test this, however I saw this error in another library linking openssl some time ago. In that case it was related to https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_options.html#SSL_OP_IGNORE_UNEXPECTED_EOF (the option was added to openssl one or two years ago I think). I don’t think ocaml-ssl allows to set it.

If you install tls-lwt and run your code with the environment variable CONDUIT_TLS=native, do you still see the issue?

@abhsrivastava
Copy link
Author

the above suggestion worked. I installed tis-lwt and set environment variable and now error is gone. thanks

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

2 participants