All Questions
Tagged with spring-cloud spring-cloud-feign
186 questions
1
vote
1
answer
33
views
Spring Cloud Contract test fails after adding OpenFeign dependency
I'm working on a Spring Boot project using Spring Cloud Contract for consumer-driven contract testing. My setup was working fine with the following dependencies in the parent pom.xml:
spring-cloud-...
0
votes
1
answer
211
views
Spring Cloud OpenFeign is not sending audio/ogg header when calling the endpoint
I'm trying to send audio OGG file bytes via Spring Cloud Feign Client by calling the API.
But I'm getting a 400 Bad Request with the error given below:
"error_message" : "OGG header has ...
0
votes
0
answers
197
views
Spring cloud load balancer with blocking Feign client
I'm trying to make PoC program using Spring's Cloud load balancer for Feign client.
I have Feign:
@FeignClient(value = "eisec2")
public interface Eisec2Client {
@GetMapping(path = "...
0
votes
0
answers
324
views
Spring Cloud Loadbalancer and OpenFeign client side load balancing
I'm struggling to get client-side load balancing configured with
spring-cloud-starter-loadbalancer which is in my pom.xml.
I want to make this feign client load balanced:
//@LoadBalancerClient(name = &...
0
votes
1
answer
208
views
Cyclic HTTP 400 errors in Spring Boot application using Feign client for scheduled tasks
I am encountering a cyclic error pattern in a Spring Boot application utilizing a Feign client for inter-service communication. This issue specifically arises with scheduled tasks that make HTTP POST ...
0
votes
1
answer
466
views
OpenFeign Client - Multiple Basic Authentication token gets applied to the same request
Let's say I have 2 feign clients as below -
@FeignClient(name = "app1", url = "${app1.uri}", configuration = AppOneFeignClientConfiguration.class)
public interface AppOneClient {
@...
1
vote
1
answer
953
views
Handling feign exception in Spring boot using RestControllerAdvice
I have some Fiegn client to send request other springboot micro service.
@ExceptionHandler(FeignException.class)
public ResponseEntity<ApiError> handleFeignException(FeignException ex, ...
2
votes
1
answer
3k
views
How to declare different Oauth2 client registration id's for each feign client?
Im Using Spring Boot 2.7.2 together with Spring Cloud 2021.0.
I have multiple OAuth2 providers:
spring:
security:
oauth2:
client:
provider:
provider-one:
...
0
votes
0
answers
675
views
Spring Open Feign fallbackFactory not working
I have upgraded my java project from java 8 to java 21.
Below my pom.xml file
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-...
2
votes
1
answer
1k
views
Spring Cloud 2022 Load Balancer Compatibility with Feign Client
We are having an issue with our custom load balancing after upgrading our project to spring boot 3.1.3. We are using feign clients to connect to our apps using spring's load balancing and open feign ...
0
votes
1
answer
736
views
Can I use a compiled library with a certain Spring Boot version in another project with a different Spring Boot version?
We are developing a Spring Boot microservices with the typical multimodule scenario.
parent-pom
module 1 (api)
module 2 (server)
module1-api <-- as dependency
We have a server module where ...
0
votes
0
answers
83
views
How to throw exception in main thread when CompletableFuture finished exceptionally immediately
When my service is called, I have 2 @Async FeignClient APIs getBookAsync, getAuthorAsync to check things:
@Async
public CompletableFuture<JsonNode> getBookAsync(Long id) {
CompletableFuture&...
1
vote
2
answers
3k
views
Reading FeignClient url from application.yaml not working
I am trying to read the Feign client url from application.yaml, I am not using ribbon. Ribbon worked before now I migrated to spring boot 3.1.4 and spring cloud 2022.0.3
@FeignClient(name = "new-...
0
votes
0
answers
775
views
Spring Feign won't send Pageable in the request body
I have a Search and Users microservices. Search uses Spring Feign to call an endpoint in Users' UserController that searches for the users and returns those that match the query.
The endpoint in ...
1
vote
0
answers
1k
views
Spring Cloud - Feign - Number of threads
I am new with Feign so I want to study and use Feign.
Does default number of threads of Feign is 200 which is the same default number of threads in Tomcat?
As Feign is a web service client and it has ...