Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [spring-webclient]

WebClient makes it possible to perform reactive non-blocking HTTP requests in Spring applications. Use this tag for any questions involving its usage.

spring-webclient
0 votes
0 answers
20 views

Data related to the response is being filtered and body is not displayed despite various attempts to set it up

I would like the log to include all information regarding requests and responses including their bodies. Despite the following standard logging configuration, the content of the responses is being ...
Walter Butze's user avatar
0 votes
0 answers
9 views

Connection reset by peer issue and doubts about the idle connection timeout of AWS API Gateway & ALB?

All. We have deployed springboot services on ECS and use WebClient from spring-webflux, which uses Reactor Netty Clients under the hood, as the http client to call outside APIs. So far, we just used ...
Windforce89's user avatar
0 votes
0 answers
17 views

Resilience4j Circuit Breaker and Retry with WebClient Not Working as Expected

I'm using Resilience4j to configure a circuit breaker and retry mechanism for my WebClient requests in a Spring Boot application. However, I'm facing two issues: The retry mechanism is not working at ...
psms's user avatar
  • 873
0 votes
0 answers
38 views

Netty blocking spring integration workers

Currently I’m working on a spring integration service that uses webClient with Netty for http calls The problem that I'm facing occurs when spring integration goes to a channel and while it is ...
German20's user avatar
1 vote
0 answers
47 views

WebClientRequestException: Pending acquire queue has reached its maximum size of XX

for ilustration purposes I have this code: // remote Echo server @GetMapping("echo") public Mono<String> echo(){ return Mono.just("echo"); } // client 1 ...
fernando1979's user avatar
  • 1,907
0 votes
1 answer
44 views

Stubbing error while mocking WebClient using Mockito

Based on answers to previous questions like these, I am trying to mock WebClient in a unit test. Please note that I don't wish to use WireMock or MockWebserver. source method: public class ...
Kaliyug Antagonist's user avatar
0 votes
0 answers
40 views

How to call REST API using Spring Webclient in global post filter

Spring Cloud Gateway with WebFlux: 4.1.0 We have implemented couple of custom Global pre and post filters in our Spring Cloud Gateway application. We are using Spring WebClient utility to make call to ...
Deepak Chhetri's user avatar
0 votes
0 answers
13 views

handling WebcClientRequest exception in Spring Webclient

using Spring WebClient (Spring boot 2.7.x) to POST messages to external endpoint. In some cases getting readtimeout exception (wrapped under WebClientRequestException) from endpoint. Trying few ways ...
Arpit S's user avatar
  • 185
0 votes
1 answer
23 views

WebClient content type 'application/xml' not supported for bodyType

When I try to send request with xml payload I get error: Content type 'application/xml' not supported for bodyType. I added this dependency: implementation "com.fasterxml.jackson.dataformat:...
Alexander's user avatar
  • 151
0 votes
0 answers
38 views

WebClient Invalid Token Response Content type 'application/json' not supported for bodyType=java.util.Map<java.lang.String, java.lang.Object>

I am writing a Spring Boot Standalone batch job application which connects to REST API with OAUTH Token protection for Authentication & Authorization. I configured reactive WebClient but when I ...
megloff's user avatar
  • 1,496
1 vote
0 answers
14 views

Translating RestTemplate to WebClient, PUT with empty Body

I have this code in Java 8 using RestTemplate. @Override public ResponseCambioEstadoDTO actualizarLead(String idLead) { Map<String, String> uriVariables = new HashMap<>(); ...
joseluisbz's user avatar
  • 1,589
0 votes
1 answer
32 views

How do I configure my .crt file content in Application.yml?

I have configured my certificate content in my application.yml file spring: ssl: bundle: my-bundle: pem: client: truststore: certificate: -----...
I_GOT_THIS's user avatar
1 vote
0 answers
32 views

Are there any spring properties to set defaults for spring webclient?

I was wondering if there exists something like spring.webclient.connectionPoolSize=100 spring.webclient.readTimeOut=1s and other similar properties in the same way we configure default kafka or jdbc ...
Aditya lahiri's user avatar
0 votes
0 answers
19 views

Spring boot - content-type of request from controller set manually being overwritten

I have a pretty basic spring boot application where I need to passthrough a file - download it from a third party service then pass it through to the client. The content type of the file is set in the ...
thavard's user avatar
1 vote
1 answer
27 views

How can I ensure that a new token is used for each user when issuing WebClient http requests altered from within an ExchangeFilterFunction?

If you want to get a bit more context regarding this question, know this is a follow-up question to: How can I authenticate using the token exchange grant type for impersonation with spring boot and ...
Crystark's user avatar
  • 4,077

15 30 50 per page
1
2 3 4 5
70