-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Gateway MVC: Retry filter not supported with YAML configuration #3172
Comments
I have a similar issue, for me when creating a custom filter it works fine when using it as a @bean but when i try to configure it in application.yml it doesn't get picked up at all |
@kristiyandimov19 yes, I need to document how to make custom filters and predicates available to config Add Line 226 in 70b454e
and then create a Line 231 in 70b454e
and add it to spring-cloud-gateway/spring-cloud-gateway-server-mvc/src/main/resources/META-INF/spring.factories Line 5 in 70b454e
|
so I have to modify spring.factories. what happened to dependency injection |
There's an enhancement request open to make it easier for developers. |
Describe the bug
Retry filter usage as described in the documentation (https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway-server-mvc/filters/retry.html) does not work with
spring-gateway-server-mvc
4.1 (spring-retry
is in the classpath).Error message: Unable to find operation interface org.springframework.web.servlet.function.HandlerFilterFunction for retry with args {retries=3, series=SERVER_ERROR, methods=GET,POST}
Last lines of the stacktrace
The
translate
methods receives aMultiValueMap<String, OperationMethod> operations
that contains 29 items,retry
is not one of them:The text was updated successfully, but these errors were encountered: