-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
Error with blockhound and springdoc-openapi-webflux-ui #1205
Comments
Use the following syntax to allow a getBytes which is containing a blocking call: BlockHound.install(b -> b.allowBlockingCallsInside(InflaterInputStream.class.getName(), "read")); |
@bnasslahsen |
This is used for sure in swagger. |
The problem is, someone might actually using InflaterInputStream in code and hence blocking the thread. Since we allowed it for swagger, essentially we introduced a bug. Question is, do we have a way to allow blocking calls only for swagger? |
See the previous answer and you can adapt it. |
Describe the bug
If you add BlockHound to the project you are not able to navigate to the swagger doc as it will report that it is using a blocking call.
To Reproduce
Steps to reproduce the behavior:
./mvnw spring-boot:run
Expected behavior
Additional context
This issue has been reported before #884. I have tried that example as well and getting the same error with it. Don't understand why it was said that that example was working fine.
The text was updated successfully, but these errors were encountered: