Skip to content

[Http.fs bug] error with uploading request body #1082

@saneman1

Description

@saneman1

I do PUT http request with some body, size about 1MB.
The server immediately responds with error status code (409 Conflict), I see it in the traces. After upload of the request body is complete, an error occurs:

WebException: The underlying connection was closed: An unexpected error occurred on a receive.
IOException: Unable to read data from the transport connection

exception raised at function getResponseFromBeginEnd

When size of payload request body less 1MB all ok.
The cause of the problem the following - by the end of the uploading body server already closes the connection.

How can I work around this issue and retrieve the actual response from the server?

thx, for the library, very usefull !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions