Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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-...
Jeff's user avatar
  • 8,469
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 ...
silenzzz's user avatar
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 = "...
greengold's user avatar
  • 1,333
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 = &...
greengold's user avatar
  • 1,333
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 ...
Yu Yang's user avatar
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 { @...
RohitG's user avatar
  • 97
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, ...
Shamal Muneer's user avatar
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: ...
Mulgard's user avatar
  • 10.7k
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-...
Nidhi Gupta's user avatar
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 ...
rockyg's user avatar
  • 23
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 ...
dienarvil's user avatar
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&...
vunhatchuong's user avatar
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-...
Sreejesh's user avatar
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 ...
odxrs's user avatar
  • 43
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 ...
John's user avatar
  • 71

15 30 50 per page
1
2 3 4 5
13