You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 toOK(data)
result from my REST WebAPI.Can I suggest,
HttpHeaders.TryAddWithoutValidation(key, value)
instead ofHttpHeaders.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.
The text was updated successfully, but these errors were encountered: