-
Notifications
You must be signed in to change notification settings - Fork 33
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
InspectResponseBody stream consumed #501
Comments
Hi @AndrewZenith Can you confirm what version of the kiota dependencies are being used please? if not the latest (1.16.1), can you please upgrade and try again? Can you also try to set I believe what's missing here is a call to LoadIntoBuffer I'd like to mention that we're operating with a reduced team at the moment, expect delays in responses, thank you for your patience! |
Hi, I'm running 1.16.1, and with InspectRequestBody set to false I do not get the error. |
I just noticed that without the error the response object is not populated correctly either. response.DeparturesPostResponseMember1 -> null I'll check to see if the response matches the yaml. Wouldn't be the first time it didn't. |
Interesting, what happens if you set ONLY InspectRequestBody to true (and response to false)? (just checking for sanity here) |
Oops, my bad - it was InspectResponseBody I set to false. It is definitely when trying to read the response that it fails. It fails when this is set to true. I had to remove the oneOf and the first schema from the yaml as well as it would not parse the data to the objects, probably due to the missing discriminator warning. |
+1 @AndrewZenith Out of curiosity any chance you can also share the used runtime when making the call(netfx or NET version)? |
InspectResponseBody stream consumed:
The stream was already consumed. It cannot be read again.
I am sending a MemoryStream containing xml content, as per the following in the yaml:
bodyInspectionHandlerOption.ResponseBody has a valid readable stream, here is the response message (full):
The .yaml for the response is as follows:
The text was updated successfully, but these errors were encountered: