Receiver class org.springframework.cloud.gateway.server.mvc.handler.RestClientProxyExchange$$Lambda/0x000000c0017a2678 does not define or inherit an implementation of the resolved method 'abstract java.lang.Object exchange(org.springframework.http.HttpRequest, org.springframework.web.client.RestClient$RequestHeadersSpec$ConvertibleClientHttpResponse)' of interface org.springframework.web.client.RestClient$RequestHeadersSpec$ExchangeFunction.
the error can be reproduced invoking anything that is not sending back an immediate response body without proxying. Any proxied url (e.g. http :8080/anything/first) is producing the error
the issue is present also with spring-cloud-dependencies:2023.0.0-RC1
When using spring boot
3.2.0
instead of3.2.0-M3
as included here, an error is generated whenDefaultRestClient.exchange
is invokedThe issue happens here: https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/client/DefaultRestClient.java#L464
And the exception, with 3.2.0 only, is
the error can be reproduced invoking anything that is not sending back an immediate response body without proxying. Any proxied url (e.g.
http :8080/anything/first
) is producing the errorthe issue is present also with
spring-cloud-dependencies:2023.0.0-RC1