-
Notifications
You must be signed in to change notification settings - Fork 50
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
Unable to get Streams using batched requests, Length always zero #945
Comments
Info: It works when building the batched request manually with HttpClient.
So there might be something wrong with The /content call returns a 302 status with a
I guess that only the empty body is evaluated? |
Thanks for raising this @greynoO It looks like due to the redirect response there is no response body returned when calling this specific API. Are you able to obtain the location header if you change your code to fetch like this? var responseMessage = await batchResponse.GetResponseByIdAsync(requestId);
var locationHeader = responseMessage.Headers.Location; |
I get the location header, but of course it should be done automatically when calling |
Describe the bug
When using
BatchRequestContentCollection
(orBatchRequestContent
) to request a stream content it only returns an empty stream (Length = 0). This happens regardless of whether there is a single or multiple requests in the collection.I also tried to just use
GetResponseByIdAsync
, Header information saysThis does not occur when doing a single request without batching:
The stream gets returned correctly then.
Expected behavior
Batched requests should return stream content correctly.
How to reproduce
SDK Version
3.2.1
Latest version known to work for scenario above?
don't know
Configuration
The text was updated successfully, but these errors were encountered: