-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Many requests break after 4.2.0 upgrade for unclear reasons #3662
Comments
Without more information it's going to be difficult, if not impossible to diagnose anything. We don't expect proprietary code to be submitted, but taking some time to create a minimal standalone sample that recreates the problem is essential. |
As a fellow dev I totally appreciate that. The problem is I can't recreate this in integration tests (for some really unclear reason) but we can recreate it in a deployed environment. So sample code isn't going to be possible. It might be a multithreading issue, who knows... This is the exact error:
Maybe other users will run into it, and they will be able to comment on this issue if they have more info and it can help the debugging. At the very least raising this acts as a flag that something is off. |
for my case whenever request coming through another nginx having header X-Forwarded-Prefix then its try to find the predict with prefix and uri. witch is causing 404. I am able to reproduce this with passing header X-Forwarded-Prefix and server.forward-headers-strategy: framework in my local setup. and kubernetes it all fail. |
Interestingly, it turns out the requests being made which fail did include @spencergibb Do you know if there have been any changes in this area between 4.1.5 and 4.2.0, and if so is there a way to get previous behaviour working? |
@jamesforwardnwboxed
Issue is also mentioned here spring-projects/spring-boot#43577 Currently, this can be worked around using configuration |
We have a similiar issue and could also track it down to the SB / Cloud Gateway Upgrade to 2024. Whenever the hosts header is send via the other gateway, SCG can not find the route and responds with a 404. The issue is not existing on previous Spring Cloud Gateway version |
We had the same issue, and I managed to write a reproduction in #3677. I too think that there are two changes in Spring Framework & Reactor Netty, that have unintended effects for Gateway. |
Describe the bug
Using
spring-boot-starter-gateway
with3.3.5
spring boot version and2023.0.3
spring cloud version, everything works as expected and all of our requests are routed.We have discovered upgrading to
3.4.1
spring boot version with2024.0.0
, a number of external requests being made are failing. We have attempted to debug the reason and it is pretty unclear. We know it's something to do with the upgrade as the requests made have been identical, and reverting solves the issue.We checked the changes between
4.1.5
and4.2.0
of this dependency (which is what the starter provides) and they are very substantial. It may also be down to a transitive dependency - at the moment it is unclear.Debugging using our observability tool, we find that some of the external requests seem to match
/**
under Spring Webflux rather than the normal route. This is odd, as other requests coming in match the route correctly.The only things different between the requests that break and those that don't are certain headers which should be unrelated to routing.
Sample
Cannot provide samples due to proprietary code unfortunately.
The text was updated successfully, but these errors were encountered: