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.

992 questions
-1
votes
1 answer

Why does the github api return error 422?

I want a user to receive the invitation to an organization through his email, the problem is that the error 422, but I don't know what I have to modify in my object so that the Github Api can process the information. @PostMapping("/add") …
-1
votes
1 answer

Difference in thread name between local machine and server

We have a Spring application using Webclient that make some call to an external API. In local environment thread names in the log are [reactor-http-nio-X] : 2021-12-01 15:58:42.960 | | DEBUG 37528 --- [ctor-http-nio-5]…
-1
votes
1 answer

How add or Ignoring a specific http status code in WebClient reactor?

I have a this method that manage all request of my project: private Mono postInternal(String service, String codPayment, String docNumber, RequestHeadersSpec requestWeb) { return…
Juan Sanchez
  • 113
  • 1
  • 9
-1
votes
1 answer

Reactor - retry based on item field value

I'm using a spring boot application with Webflux. I need to retry the request if i get some error, but also, I need to check if an object property is true. This property is a boolean to check if i can retry. Example: webClient .post() …
-1
votes
1 answer

How to deal with different JSON Response in Spring

I'm using Spring WebClient to make REST requests. I've created POJO's to store the JSON properties but there's a problem. If a word on the API I'm using doesnt exist, It returns an array of words [ "testified", "the last\/final word", "testify…
-1
votes
1 answer

Salesforce REST api using reactor With Spring WebClient

I tried to connect Salesforce from Spring boot webclient. I have the JWT token with the below code String header = "{\"alg\":\"RS256\"}"; String claimTemplate = "'{'\"iss\": \"{0}\", \"sub\": \"{1}\", \"aud\": \"{2}\", \"exp\": \"{3}\", \"jti\":…
Neela
  • 107
  • 2
  • 10
-1
votes
1 answer

Spring WebFlux - Send HTTP requests with WebClient for each element of a list inside a Mono

We are trying to convert an MVC, resttemplate, blocking, application into a WebFlux app. Very straightforward in the “blocking world”, get a list inside a request payload, iterate through it and send N http requests to a third party rest API. Very…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
-1
votes
1 answer

Webflux application, concurrent outgoing connections (theoretically, and configuration parameters)

I have a Webflux application, which accepts incoming json requests and returns flux responses. Each request in turn initiates a request to a another micro-service using Webclient. How many concurrent requests can such a webflux application handle,…
tsar2512
  • 2,826
  • 3
  • 33
  • 61
-1
votes
1 answer

Spring Boot - Do a new WebClient call with result of another call

I'm trying to call an api with 2 call using webclient. The first call return a token The second call use the token and ask some data. How to do it?? I've tried with call the first and use GetToken().block() but at runtime i have an error... I've…
Mirko
  • 113
  • 2
  • 10
-2
votes
1 answer

REST API object conversion in java

I have request body of supplier in below format : { "supplier": { "supplierData": { "supplierAddress": { "street": "abc", "postCode": "1234", "city1": "abcd", "country": "DE", "region": "BW" …
nitin
  • 83
  • 1
  • 9
-2
votes
1 answer

get all the responses from the flux

I am trying to get all the responses from flux but sometimes I'm getting all the response and sometimes I'm not getting only few responses. Can anyone please help me on this. I have attached the picture for reference. I don't want to subscribe to…
-2
votes
1 answer

WebClient synchronous call does not return from within a filter stack trace

In a Spring Gateway API I have a filter which calls a class to make a call to another API using WebClient. If I make the same call from say a controller the call returns. However when this webclient call is made from within the Filter stack it never…
-2
votes
1 answer

Integrate AWS XRay HttpClientBuilder with Spring Webclient

I am using Spring Webclient for my microservices for external calls. I am trying to Integrate AWS XRay in our microservices. But to get the traces of Outgoing HTTP calls in xray, I have to use XRay HttpClientBuilder. Is there any way i can integrate…
Manav
  • 1
  • 2
-2
votes
1 answer

UrlBuilder query string encoding not working

WebClient urlbuilder query string has changed String key = "bEyBOCB4SoL%2F1gI%s" webClient.get() .scheme("http") .host("www.localhost:8080") .queryParam("key", URLEncoder.encode(key, StandardCharsets.UTF_8.toString())) .build() ... send…
javaOne
  • 1
  • 3
-3
votes
4 answers

Java Spring Boot Webflux cors blocked

I am trying to build out an Angular & Spring Boot app with Webflux, and instead of starting by getting bogged down by a full CRUD tutorial with entities and databases I thought I'd start by just seeing if I could get the client to display a string…
amdorsey12
  • 453
  • 5
  • 17
1 2 3
65
66