Questions tagged [spring-reactive]
128 questions
8
votes
8 answers
spring-boot ReactiveClientRegistrationRepository not found
Environment: Spring Boot 2.3.1, Java 11
I have tried out a few things already (also comparing with the sample-app by spring), but so far I have been unsuccessful in creating a WebClient that requires a ReactiveClientRegistrationRepository.
I get the…

marco
- 163
- 1
- 1
- 9
7
votes
0 answers
Webflux request/response logging
I believe it is a standard to log request and response in order to track down any issues reported by users and also to integrate it with tools like Splunk.
I've found 2 approaches so far, but none of them is really solving this issue…

SliceOfPig
- 123
- 3
- 10
7
votes
0 answers
How to get rid of the conversionServicePostProcessor bean conflict?
I've got a project with the following dependencies:
org.springframework.cloud
spring-cloud-dependencies
…

Greg
- 1,227
- 5
- 23
- 52
7
votes
2 answers
How to bridge between a non-reactive Spring EventListener and a reactive Flux
What's the difference between creating a Flux directly by calling Flux.push and use the sink within push's lambada expression vs. using a sink provided by a DirectProcessor?
In a minimal example where a Flux just emits a couple of events, I could…

Stefan Haberl
- 9,812
- 7
- 72
- 81
6
votes
1 answer
Problem with cutomizing ErrorAttributeOptions in Spring Reactive
In my handler function I have this method
public Mono itemsEx(ServerRequest serverRequest) {
throw new RuntimeException("RuntimeException Occured");
}
Now, I want to handle this exception, so I override…

merc-angel
- 394
- 1
- 5
- 13
5
votes
1 answer
Spring Reactive WebFlux - how to customize the BadRequest error message
In my request handler, if the passed-in accountId cannot be converted to a valid ObjectId I want to catch the error and send back a meaningful message; however, doing so causes the return type to be incompatible, and I cannot figure out how to…

Marco Massenzio
- 2,822
- 1
- 25
- 37
5
votes
3 answers
Make asynchronous SOAP call in Spring WebFlux
I have a Reactive Spring Application using WebFlux with a REST API. Whenever a user calls my API, I need to make a call to a SOAP service which exposes a WSDL, perform some operation and return the result.
How do I combine this call to a SOAP…

ChrisDekker
- 1,584
- 18
- 39
4
votes
2 answers
Using spring SecurityWebFilterChain how to disable/block all non-https requests except few known paths
I am using Spring security within a Spring Boot Webflux application to serve traffic primarily on HTTPS port. However as an operational requirement I need to support couple of non-secure REST API paths in my Spring Boot application for health check…

anubhava
- 761,203
- 64
- 569
- 643
4
votes
2 answers
spring security reactive - how to debug "invalid credentials" error?
I want to authenticate users with an external OAuth provider in my reactive spring boot application.
Following the official tutorial, I successfully implemented the flow with the pre-configured providers (Google, Github, etc.). Changing the…

nagy.zsolt.hun
- 6,292
- 12
- 56
- 95
4
votes
1 answer
Spring Cloud gateway send response in filter
I am using spring cloud gateway as edge server.
This is the flow
If request has a header named 'x-foo' then find the header value, get a string from another server and send that string as response instead of actually proxying the request.
Here is…

Akshay
- 3,558
- 4
- 43
- 77
3
votes
1 answer
Spring reactive Webclient timeout
I was trying to test the default timeout of Spring reactive Webclient .
For that purpose I created a rest endpoint that takes 10 hours to return a response.
I created a rest client using spring reactive Webclient. But I see that the spring Reactive…

Avinash Jethy
- 803
- 2
- 10
- 25
3
votes
1 answer
Combining non-blocking and blocking calls and returning the results in Spring Webflux
I am using Spring Webflux along with Spring boot 2 and my scenario goes like this:
Controller
@GetMapping(path="/products")
public List getProducts(){
return serviceObj.getProducts();
}
Service Class
public List…

sumit pramanik
- 77
- 1
- 1
- 5
3
votes
1 answer
How can I get the referrer URL in Spring Webflux?
How can I get the referrer URL in Spring Webflux?
I tried to look into the header attributes in ServerWebExchange exchange object but could not found the same.
Can someone please help me here.

Paras
- 3,191
- 6
- 41
- 77
3
votes
2 answers
SSE `this.eventSource.onmessage` call fails. Error `"EventSource's response has a MIME type ("application/json") that is not "text/event-stream"
The Angular Server Sent Event this.eventSource.onmessage call fails with an error "EventSource's response has a MIME type ("application/json") that is not "text/event-stream". Aborting the connection." I see in the Chrome Dev Tools (image attached)…

raikumardipak
- 1,461
- 2
- 29
- 49
3
votes
1 answer
Cacheing in Spring webflux
Suprised it was so hard to find concrete info about this online.
Is it possible to cache results in spring webflux?
For eg: Could I have my rest service, and then use mongodb as the primary database, and redis as the cache. So when request comes…

user3038404
- 331
- 5
- 14