Skip to content

SSL read() error while reading response from a POST request #999

@code-ghalib

Description

@code-ghalib

Hello, I am encountering a strange error and would like to know if the authors can help.

I am trying to get a token from an OAuth2 server using a POST request. This request succeeds using curl or a python implementation using the requests library.

But when I use Cohttp_lwt_unix.Client, while the status code is 200, the extraction of the `Stream from Cohttp_lwt.Body.t, using Cohttp_lwt.Body.to_string fails with this error:

SSL read() error: error:00000000:lib(0):func(0):reason(0)

The google brought me to this issue on the curl repo: curl/curl#1689

This suggests that it's a problem with the server - but the server works fine with curl and python and even returns a successful status code, so it makes me wonder whether this is something peculiar with the Cohttp implementation (specifically the Transfer* modules).

Unfortunately I do not have a way for you to replicate the error, but I'm hoping someone has seen this before or can spot an obvious cause of this error.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions