Skip to content

Possible bug with spring cloud gateway #45386

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

Closed
juacamilo99 opened this issue May 7, 2025 · 1 comment
Closed

Possible bug with spring cloud gateway #45386

juacamilo99 opened this issue May 7, 2025 · 1 comment
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

Comments

@juacamilo99
Copy link

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 7, 2025
@bclozel
Copy link
Member

bclozel commented May 7, 2025

Please raise this against Spring Cloud Gateway: https://github.com/spring-cloud/spring-cloud-gateway/issues/

@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2025
@bclozel bclozel added status: invalid An issue that we don't feel is valid for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants