Skip to content

An error occurred while reading the response. #14

@sabmah

Description

@sabmah

Hello,
On await restBusClient.GetAsync(uri, requestOptions); , I'm getting an error stating 'An error occurred while reading the response.'
I debugged on this error and it seems like on Line 62 it has problem adding content headers "Expires" as -1. This is the default expire value returned from my REST WebAPI. NOTE: I'm returning ResponseMessageResult as opposed to OK(data) result from my REST WebAPI.

Can I suggest, HttpHeaders.TryAddWithoutValidation(key, value) instead of HttpHeaders.Add(key, value) ?

Also, there is no exception catch on RPCStrategyHelpers.TryGetHttpResponseMessage(packet, out response) Line 176 . It would be nice to see the actual error instead of generic "An error occured while reading the response". Can there be thrown exception?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions