-
Notifications
You must be signed in to change notification settings - Fork 863
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 access the response body #2701
Comments
Can you create a minimal runnable example where it doesn't work in your case? The sample code does "work on my machine"™. Note that as-written, the response transform would break the request as the content can't be re-read, but it should still print the body to the console before doing so. |
I have added the link to a sample repo (https://github.com/[beukerz/yarpsample](https://github.com/beukerz/yarpsample)) I am sending a simple get request to the weather api. |
Do you have a step-by-step for what you've tried that doesn't work? |
I just tested running the project without containers and it works. So it seems the issue only exists in containers. |
Sounds like a non-YARP issue then. Let me know if we've missed something. |
Describe the bug
In middleware or in a transform the response body is always empty.
To Reproduce
Transform code:
Middleware code:
In both situations the body is always an empty string.
Further technical details
2.2.0
Windows
Sample repository
https://github.com/[beukerz/yarpsample](https://github.com/beukerz/yarpsample)
The text was updated successfully, but these errors were encountered: