Questions tagged [netflix-feign]

A framework created by Netflix to help connect your code to http APIs

A framework created by Netflix to help connect your code to http APIs. It is hosted on Github at Netflix/feign.

235 questions
44
votes
6 answers

Error Injecting FeignClient from another Project

I am having trouble auto wiring a feign client from another project. It appears that the implementation of the feign client is not being generated and injected. This is the error I am getting. org.springframework.beans.factory.BeanCreationException:…
Wes
  • 847
  • 2
  • 10
  • 22
42
votes
3 answers

Can I configure a @FeignClient url using a properties/yml file?

My goal is to create a strategy of different steps to get from a point-to-point communication between 2 components to a "full blown netflix" style of communication using eureka, ribbon, hystrix. With each iteration I want to add more while I try to…
Freek van Gool
  • 423
  • 1
  • 4
  • 6
35
votes
11 answers

Load balancer does not have available server for client

I'm trying to use Feign client. Below is my feing client: import com.eprogrammerz.examples.domain.Movie; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import…
Yogen Rai
  • 2,961
  • 3
  • 25
  • 37
35
votes
10 answers

How to solve Timeout FeignClient

My application is getting below error when consuming a service that performs queries in SQL Server using FeignClient. ERROR: Exception in thread "pool-10-thread-14" feign.RetryableException: Read timed out executing GET …
Renan Lalier
  • 671
  • 2
  • 7
  • 13
24
votes
4 answers

Using @RequestLine with Feign

I have a working Feign interface defined as: @FeignClient("content-link-service") public interface ContentLinkServiceClient { @RequestMapping(method = RequestMethod.GET, value = "/{trackid}/links") List
nickcodefresh
  • 887
  • 2
  • 10
  • 25
24
votes
2 answers

Spring Cloud: How to use Feign without Ribbon

I would like to use Feign without client-side loadbalancer Ribbon because I don't want to run Eureka, which would need to be distributed and highly available. Instead internal ELBs with internal DNS names managed by Route53 will do just…
Konrad Hosemann
  • 251
  • 1
  • 2
  • 5
22
votes
5 answers

Invalid HTTP method: PATCH > executing PATCH : Caused by: feign.RetryableException:

we are using netflix feign to make call to restful web service. For patch request it looks like PATCH request is not supported. Caused by: feign.RetryableException: Invalid HTTP method: PATCH executing PATCH …
user2775185
  • 1,099
  • 3
  • 17
  • 30
20
votes
2 answers

Differences between netflix.feign & openfeign

Introduction I recently used netflix feign along with ribbon which was quite useful. An Example of this is: @FeignClient(name = "ldap-proxy") public interface LdapProxyClient { @RequestMapping(path = "/ldap-proxy/v1/users/{userNameOrEMail}",…
Menelaos
  • 23,508
  • 18
  • 90
  • 155
20
votes
7 answers

How to ignore SSL cert trust errors in Feign?

How can I achieve curl -k in feign client? I know I can do this. Just want to know if there's a way to ignore or disable. new Client.Default(SSLSocketFactory sslContextFactory, HostnameVerifier hostnameVerifier)
Bee
  • 12,251
  • 11
  • 46
  • 73
17
votes
3 answers

Mock an Eureka Feign Client for Unittesting

i am using spring cloud's eureka and feign to communicate between some services (lets say A and B). Now id like to unittest my service layer of a single service (A). The problem is, that this service (A) is using a feign client to request some…
16
votes
1 answer

Using spring cloud feign causes java.lang.NoClassDefFoundError: feign/Logger

I enabled my spring cloud for feignClients like this: @Configuration @EnableAutoConfiguration @RestController @EnableEurekaClient @EnableCircuitBreaker @EnableFeignClients public class SpringCloudConfigClientApplication { } But as oon as I add…
user3006967
  • 3,291
  • 10
  • 47
  • 72
15
votes
6 answers

File Upload Using Feign - multipart/form-data

I'm trying to accomplish a multipart file upload using feign, but I can't seem to find a good example of it anywhere. I essentially want the HTTP request to turn out similar to this: ... Content-Type: multipart/form-data;…
btidwell
  • 427
  • 1
  • 3
  • 10
15
votes
1 answer

Can a Spring Cloud Feign client share interface with an Spring Web Controller?

Building an endpoint and client with Spring MVC and Feign Client (with spring cloud). I had the thought that since both ends need to have the same annotations - and that they have to be pretty much in sync. Maybe I could define them in an interface…
Kristoffer
  • 410
  • 2
  • 6
  • 16
13
votes
2 answers

FeignClient in spring boot 2

I am trying to migrate from spring boot 1.5 tio 2.0 and faced problem: I changed version of spring-cloud-netflix-core from 1.3.4.RELEASE to 2.0.1.RELEASE: org.springframework.cloud
Sviatlana
  • 1,728
  • 6
  • 27
  • 55
13
votes
4 answers

How to send POST request by Spring cloud Feign

It's my Feign interface @FeignClient( name="mpi", url="${mpi.url}", configuration = FeignSimpleEncoderConfig.class ) public interface MpiClient { @RequestMapping(method = RequestMethod.POST) public…
koa73
  • 861
  • 2
  • 10
  • 27
1
2 3
15 16