You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method writeAndFlushWith(body) is not invoked in ClientHttpRequestDecorator when doing a @POST call with request @Body Flux using @RetrofitClient with WebClient
#50
Open
dante-ricalde opened this issue
Jun 16, 2022
· 0 comments
Hi guys, @OlgaMaciaszek
I am trying to implement a decorator to ClientHttpRequestDecorator to print some logs using @RetrofitClient @Body with Flux for the request body using WebClient, but it is not working. The method writeWith(body: Publisher) of the decorator is being invoked (actually this method should have been invoked: writeAndFlushWith()) and it doesn't receive correctly the data buffers causing the logs are not printed correctly, only the text {"prefetch":-1} is printed as request body.
Note: The method writeAndFlushWith() is being invoked and works correctly when an http request is invoked directly using WebClient (but We would like to use the component @RetrofitClient and not just the WebClient directly), like this:
We want to know if there is a bug for this scenery or there is not still support for making this type of call: @post call with request @Body Flux using @RetrofitClient(WebClient)?
I am looking forward to hearing from you!
The text was updated successfully, but these errors were encountered:
dante-ricalde
changed the title
method writeAndFlushWith(body) is not invoked in ClientHttpRequestDecorator when doing a @POST call with @Body Flux using @RetrofitClient with WebClient
method writeAndFlushWith(body) is not invoked in ClientHttpRequestDecorator when doing a @POST call with request @Body Flux using @RetrofitClient with WebClient
Jun 16, 2022
dante-ricalde
changed the title
method writeAndFlushWith(body) is not invoked in ClientHttpRequestDecorator when doing a @POST call with request @Body Flux using @RetrofitClient with WebClient
Method writeAndFlushWith(body) is not invoked in ClientHttpRequestDecorator when doing a @POST call with request @Body Flux using @RetrofitClient with WebClient
Jun 16, 2022
Hi guys, @OlgaMaciaszek
I am trying to implement a decorator to ClientHttpRequestDecorator to print some logs using @RetrofitClient @Body with Flux for the request body using WebClient, but it is not working. The method writeWith(body: Publisher) of the decorator is being invoked (actually this method should have been invoked: writeAndFlushWith()) and it doesn't receive correctly the data buffers causing the logs are not printed correctly, only the text {"prefetch":-1} is printed as request body.
I am trying with the following Retrofit Client:
Note:
The method writeAndFlushWith() is being invoked and works correctly when an http request is invoked directly using WebClient (but We would like to use the component
@RetrofitClient
and not just the WebClient directly), like this:We want to know if there is a bug for this scenery or there is not still support for making this type of call: @post call with request @Body Flux using @RetrofitClient(WebClient)?
I am looking forward to hearing from you!
The text was updated successfully, but these errors were encountered: