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
2 answers
Feign ErrorDecoder not invoked
Hello I created simple ErrorDecoder but it's not invoked:
The configuration:
@Bean
UserClient userClient ( @Value( "${url}" ) final String url )
{
return Feign
.builder()
.client( new OkHttpClient() )
…

minizibi
- 653
- 3
- 13
- 28
0
votes
2 answers
Error creating bean with name 'scopedTarget.oauth2ClientContext': Scope 'request' is not active for the current thread for feign client
I am calling another microservice once my current microservice is up and ready using feign client in my current microservice built using Jhipster.
So my Feign Interface is
package com.persistent.integration.client;
import java.util.List;
import…

user3388006
- 1
- 2
- 2
0
votes
1 answer
How to reduce delays when using zuul, eureka, feign
When the API service is restarted initially. If I call the API service directly, it works but if I call it through the feign client, I'll see the hystrix fallback message for a few seconds. And If API service is not running when I call it through…

sunwoo
- 148
- 8
0
votes
1 answer
no suitable HttpMessageConverter found for request type [java.util.LinkedHashMap] and content type [multipart/form-data]
I an trying to integrate a file upload service, which is registered with a Eureka discovery infrastructure.
My Service, say /myfile/upload is having below 6 parameters, below is the YML:
/myfile/upload:
put:
operationId:…

Vivek Gupta
- 2,534
- 3
- 15
- 28
0
votes
1 answer
spring cloud feign invoke a method for upload file throws exception param is not present
feignclient:
@FeignClient(value = "code-analysis")
public interface ICodeAnalysisService{
@PostMapping({"/cache"})
ResultVO postResultCache(@RequestParam(value = "file",required = false) MultipartFile var1, @Valid…

zhenxing liang
- 1
- 2
0
votes
1 answer
Spring boot : Feign client rest call not working with oauth2, but does work on browser
Having 2 microservices, one rest service one is websocket service. Websocket service has feign client to talk to the rest service.
When calling rest service from a browser tool (postman eg) the call works correctly. We pass only the header…

Olisan
- 21
- 1
- 7
0
votes
1 answer
Feign client mocking in in Junit implementation
I have been trying to mock the feign client call from Services in a spring boot implementation for writing the Junit test cases.
//Service code
@Autowired
private PersonClient personClient;
//Using the personClient
public Person someMethod(){
…

freaksterz
- 83
- 3
- 9
0
votes
1 answer
MultipartFile upload from Feign Client giving 403 Forbidden error
i am trying to call the api through feign client and upload the file along with some string parameter through MultipartFile.
This is my client code:
package com.abc;
import feign.codec.Encoder;
@FeignClient(url = "https://xys.com", name =…

Ashutosh
- 111
- 14
0
votes
1 answer
The provider is spring data rest ,client is use feign with page not work
my boot is 2.0.5
I have tried include
compile('org.springframework.boot:spring-boot-starter-hateoas')
and feign code:
@GetMapping
PagedResources findAll();
and replace PagedResources to Resources ,don't work.
and I also want to know the…

WeiXiao
- 13
- 3
0
votes
1 answer
Feign URL encoder query params
I have a query param that's a secret and contains characters like !, *, ' and feign is interpreting these characters, so they become like %027. The server doesn't expects the URL encoded and authentication fails, there is some way to Feign ignore…

ghn1712
- 105
- 1
- 3
- 15
0
votes
1 answer
SPRING - Can't retrieve a ResponseEntity with Feign while sent correctly formated
I'm trying to communicate information between two micro services in Spring. One is sending a ResponseEntity with an Object in the body, but on the other side I can't seem to get the correct response. All the fields are null.
this is the controller…

Shikatamo
- 3
- 2
0
votes
1 answer
I use Spring Cloud Netflix, zookeeper and feignclient to build my micro service
I am using FeignClient to discover the services which registered in Zookeeper.
In my case, service is registered in zookeeper under "/rsservices/sparkexecutor".
But when i gave @FeignClient(name = "sparkexecutor"), i think it tries to discover from…

Ponnudurai Periasamy
- 31
- 2
0
votes
1 answer
Do I need to close Response.body for Custom Error Handling in Feign Client
I have defined custom ErrorDecoder for Feign Client with reference to this wiki page.
In my ErrorDecoder I am reading response body by invoking response.body()
Do I need to close response in my ErrorDecoder when reading InputStream. Or Feign will…

Yogesh Kulkarni
- 33
- 6
0
votes
1 answer
Method has too many Body parameters
I have the following requestMethod in a RestController class and it´s working fine:
@RequestMapping(path = "/api/v1/rest/websearcher/search/results", method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
…

hector s.
- 126
- 2
- 9
0
votes
2 answers
How can I get the elapsed time from a feign client request?
I am using Spring Feign clients.
Is there a way to get the time it took for a response to be received after a request was sent?
I have a lot of requests mapped and would like a clean way to assert in tests that a response was received within a…

Jusbat
- 40
- 5