4,143 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
148
views
How to move a certain file to another directory?
Recently, I’ve been working on a small project that allows you to download information about a person who has participated in a powerlifting meet. The data comes from OpenIPF.
In this project, a CSV ...
Advice
0
votes
2
replies
92
views
PKIX path building failed: unable to find valid certification path — How to load PEM certificate into truststore at runtime in Spring Boot?
I am getting the below SSL error when my Java (Java 21, Spring Boot 3/4) application makes a REST call to a gateway:
Internal server error: (certificate_unknown) PKIX path building failed:
sun....
0
votes
0
answers
94
views
Spring WebClient takes too long to process the first request — subsequent calls fast
I'm using Spring WebClient in my Java application to authenticate with Keycloak.
The issue I'm facing is:
The first WebClient request takes a long time (5-9 seconds), but all subsequent requests are ...
0
votes
0
answers
70
views
WebClient sending an empty multipart request to Flask service
I have a problem with sending multipart/form-data requests from my Java service (using WebClient but same history with RestTemplate) to Flask service. It seems like a sent body is just empty as I get ...
0
votes
0
answers
30
views
Unit Test with MockWebServer with OAUTH failing
I am trying to write a unit test for a webclient that has a oauth filter. I see the error ,
org.springframework.security.oauth2.client.ClientAuthorizationException: [server_error]
at org....
0
votes
0
answers
36
views
MockWebServer throwing " unable to find valid certification path to requested target" error
I am trying to create a mockwebserver to unit test a webclient
parent code :
public DetailResponse getDetail(String id) {
WebClient newWebClient = getLoggingWebClient(webClient);
...
0
votes
0
answers
64
views
Specific Error message depending on HttpStatus in WebClient .onStatus
I want depending on the HttpStatus of the error, throw an exception with the associated error message. But somehow response.rawStatusCode() doesn't work.
This is currently my code:
JsonNode APISong = ...
0
votes
1
answer
251
views
Spring WebClient returns 400 Bad Request when calling URL with encoded path, but the same URL works Postman
I'm using Spring Boot and WebClient to call an external REST service (not developed by me).
To do that, I build a full URL by appending an encoded file path to the base service URL.
When I copy the ...
0
votes
0
answers
58
views
Hoverfly Proxy setting not working with Spring WebClient
I am trying to mock the responses using hoverfly, but it not working with webclient. Same setup works if i switch to RestTemplate for service calls and i am using following webclient configs.
@Bean
...
0
votes
0
answers
55
views
Spring webflux webclient inserting empty body for get requests
I am using webclient to integrate with external get API
WebClient webClient = WebClient.builder().filter(logRequestAndResponse()).baseUrl("url").build();
return webClient.get()
.uri(...
1
vote
0
answers
152
views
Why does my WebClient response return null for generic types in Spring WebFlux?
I'm using Spring WebFlux with WebClient to fetch data from an API. When the response contains a list of objects, everything works fine with .bodyToFlux(MyClass.class).collectList().
However, when I ...
0
votes
0
answers
87
views
Spring WebFlux WebClient - 400 Bad Request for Webclient POST call
I am trying to use spring Reactive Webclient to post payload remote microservice. When I post it via postman I am getting response back with { Status: "Success", statusId:"dff-1244"}.
But from via IJ ...
2
votes
0
answers
58
views
Spring WebFlux ExchangeFunctions logs missing request body details
Question
Why doesn't the request body logging include serialized request data? How can I configure my application to log the complete request body details?
I'm trying to log the request body sent ...
1
vote
0
answers
95
views
What are the differences between ExchangeStrategies and wiretap for WebClient logging?
I am working with Spring WebClient and exploring ways to enable detailed logging for debugging purposes. Specifically, I am looking at two approaches: ExchangeStrategies and wiretap. Below are the ...
0
votes
0
answers
52
views
how to force close socket in RestClient
What should I do if I want to disconnect while still receiving responses from RestClient?
(java, kotlin)
val result = restClient().get()
.uri("")
.exchange { : HttpRequest, ...