Possible bug with spring cloud gateway #45386
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
Description: Currently, I have a service using Spring Cloud Gateway and Spring Boot WebFlux. Its global error handler captures all failed requests (including body and headers) sent to the final API and uses that data to trigger another process within the service. Previously, the service ran on Spring Cloud Gateway 4.1.x, Spring Boot WebFlux 3.3.x, and Spring Context 6.1.19, and it worked fine: when a request to the final API failed, the global error handler would capture every modification applied by Spring Cloud Gateway (for example, headers added with the AddRequestHeader filter). Now, after updating to Spring Cloud Gateway 4.2.x and Spring Boot WebFlux 3.4.x, the global error handler isn’t capturing the modified request—it only sees the original request without the Gateway’s changes. Internally, we use a filter responsible for capturing the response using ServerWebExchange and WebFilterChain and throw and exception when the response code is related to an error.
The text was updated successfully, but these errors were encountered: