Feign is a java to http client binder inspired by Retrofit, JAXRS-2.0, and WebSocket. Feign's first goal was reducing the complexity of binding Denominator uniformly to http apis regardless of restfulness.
Questions tagged [feign]
635 questions
0
votes
1 answer
How to use matrixvariable in FeignClient api class?
I have one FeignClient class and I want to use MatrixVariable to pass parameters
like below
@FeignClient(value = "apiService", url = "${api.url}", configuration =ApiServiceConfiguration.class)
public interface ApiServiceFeign {
…

NIrav Modi
- 6,038
- 8
- 32
- 47
0
votes
0 answers
Changing certificate on each outgoing call with Feign
I have a case were I need to have different certificates for each outgoing call I make with Netflix Feign.
return Feign.builder()
.requestInterceptor(new MarathonHeadersInterceptor())
.errorDecoder(new NetsErrorDecoder())
…

Trind
- 1,583
- 4
- 18
- 38
0
votes
0 answers
Feign Client with Spring Cloud Brixton SR7
I am trying to use Feign Client with the new Spring Cloud version (Brixton.SR7) but I am having problems.
Every time I try to make a REST call to a registered service in Eureka Server I got the exception:
Servlet.service() for servlet…

Fernando Pillo
- 1
- 1
0
votes
1 answer
Am I misusing rxJava by converting an observable into a blocking observable?
My API makes about 100 downstream calls, in pairs, to two separate services. All responses need to be aggregated, before I can return my response to the client. I use hystrix-feign to make the HTTP calls.
I came up with what I believed was an…

Lukasz Krawiec
- 105
- 6
0
votes
2 answers
How to automatically initizlize the 'dispatcherServlet' the moment after the web app started in the spring boot application?
I am working on feign client with hystrix in a spring boot application. I started a eureka server and register two providers. In the feign client application I added the hystrix support. And when I request the service first time, I got the hystrix…

leo
- 583
- 2
- 7
- 20
0
votes
1 answer
query value contain `{aa%` cause feign returned http status code 400
I'm using feign in spring-cloud, I have got a problem.
This is my feign client def.
@FeignClient("food-service")
public interface FoodService {
@RequestMapping(value = {"/food"},method = {RequestMethod.GET})
List…

Dreampie
- 1,321
- 4
- 17
- 32
0
votes
1 answer
Modify Feign log behavior for specific exceptions
I have a spring controller that returns a custom-made exception.
However, I don't want that specific exception to cause a "Log.Error()"
Unfortunately, Feign logs it that way automatically.
Is there any way to change this behavior?
Thanks.

DougieHauser
- 460
- 6
- 14
0
votes
1 answer
bind feign target to guice
is there a way to bind a feign target to guice?
My usecase case is as follows:
I have a service, which can be either started in the same JVM or as a separate service.
if the service is started in same JVM, then I will bind it using Guice.
if the…

mihirg
- 915
- 2
- 13
- 28
0
votes
2 answers
Feign Client (In Non Web environment) to a RepostoryRestResource with HAL - is not valid use case?
Recently while working with feign client in a spring boot application (which in my case is not a web app) I see that the client is not able to de-serialize the object correctly . As pointed to me by by a colleague - it turned out to be due to the…

naav
- 121
- 8
0
votes
1 answer
Creating scalable solution without Futures?
Exploring the HTTP client binder Feign and I see that it does not support callback results (DeferredResults). How then would I handle creating a scalable endpoint for performing many time intensive tasks in parallel? Trying to avoid something like…

tgk
- 3,857
- 2
- 27
- 42
-1
votes
1 answer
Java annotation implementation logic
I want to know how Java generates annotation implementation like @Mapper and @FeignClient. Does It generates an implementation class in runtime?
Thanks.
Know how Java generates an implementation for an interface in runtime.

daniel-lopez
- 1
- 1
-1
votes
1 answer
How to resolve InvalidTypeIdException when using @FeignClient?
I have a Spring Boot Library package common-library, within it contains a DTO class, say OrderDTO [package- com.example.common.dto].
I have two microservices - Core & Notification service. In Core service I have Order class in package…

Ashish
- 83
- 7
-1
votes
1 answer
How to differentiate headers between two/multiple endpoints in a RequestInterceptor
Hello I'm new to Java and Springboot. I'm currently working with an API where before making a POST request, I would need to generate a Bearer token. In order to generate a Bearer token, I would need to pass in my basic auth credentials to the…

Sophie
- 103
- 6
-1
votes
1 answer
how to continue the program when there is exception while calling feign client api in java
public string prospect(List prospectRequest, String primaryClientId) {
if(p2p(primaryClientId)=="Success") {
for(ProspectRequest prospect : prospectRequest) {
p2p(prospect.getId());
}
// rest of…

Ashok Reddy
- 31
- 4
-1
votes
1 answer
can I use hystrix to call up a failed request again?
I have a feign client that sends one request to another microservice every 60 seconds. On this controller, I use the HystrixCommand annotation with a user configuration (just experimenting). I also have a fallback method in which I go into when the…