-
Notifications
You must be signed in to change notification settings - Fork 38.5k
RestClient requestInterceptor not invoked after Spring Boot upgrade. #34743
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
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Comments
Hi @rpapeters, Congratulations on submitting your first issue for the Spring Framework! 👍
This change in behavior is to be expected. See:
As documented in the HTTP clients section of the 6.2 release notes, you'll need to invoke a terminal operation on the For example: restClient.get().uri("/some-endpoint").retrieve().toBodilessEntity(); In light of the above, I am closing this issue. |
This comment has been minimized.
This comment has been minimized.
Ah, it’s also in the docs as a note. Should have seen that, sorry and thx for the quick reply 😄
Op 11 apr 2025 om 16:40 heeft Sam Brannen ***@***.***> het volgende geschreven:
Hi @rpapeters<https://github.com/rpapeters>,
Congratulations on submitting your first issue for the Spring Framework! 👍
Is this a bug or should it be configured differently?
This change in behavior is to be expected.
See:
* #33777<#33777>
* #33818<#33818>
As documented in the HTTP clients<https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.2-Release-Notes#http-clients> section of the 6.2 release notes, you'll need to invoke a terminal operation on the ResponseSpec.
For example:
restClient.get().uri("/some-endpoint").retrieve().toBodilessEntity();
In light of the above, I am closing this issue.
—
Reply to this email directly, view it on GitHub<#34743 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAXXJ6VHXLNEW3NMTCOAK432Y7H47AVCNFSM6AAAAAB26J7GYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJXGEYTENJYG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
[https://avatars.githubusercontent.com/u/104798?s=20&v=4]sbrannen left a comment (spring-projects/spring-framework#34743)<#34743 (comment)>
Hi @rpapeters<https://github.com/rpapeters>,
Congratulations on submitting your first issue for the Spring Framework! 👍
Is this a bug or should it be configured differently?
This change in behavior is to be expected.
See:
* #33777<#33777>
* #33818<#33818>
As documented in the HTTP clients<https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.2-Release-Notes#http-clients> section of the 6.2 release notes, you'll need to invoke a terminal operation on the ResponseSpec.
For example:
restClient.get().uri("/some-endpoint").retrieve().toBodilessEntity();
In light of the above, I am closing this issue.
—
Reply to this email directly, view it on GitHub<#34743 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAXXJ6VHXLNEW3NMTCOAK432Y7H47AVCNFSM6AAAAAB26J7GYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJXGEYTENJYG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Since upgrading Spring Boot from 3.3.x to 3.4.x (spring-web from 6.1.x to 6.2.x) any registered request interceptors are not invoked.
For example we have this
RestClient
:In this example the
requestInterceptor
is never invoked.When looking into the code of spring-web 6.1.18 and 6.2.0 there is a difference in the retrieve function:
6.1.18
this.exchangeInternal
will invokecreateRequest
which will invoke the interceptors.6.2.0
this.exchangeInternal
is not invoked.Is this a bug or should it be configured differently?
The text was updated successfully, but these errors were encountered: