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
12
votes
4 answers

Spring Cloud Feign Client @RequestParam with List parameter creates a wrong request

I have a Spring Clound Feign Client mapping defined as following @RequestMapping(method = RequestMethod.GET, value = "/search/findByIdIn") Resources get(@RequestParam("ids") List ids); when I…
10
votes
6 answers

Migration netflix feign in Springboot 1.x to openfeign in Springboot 2.x

I try doing migration Springboot 1.x.y (Brussels-SR12) to 2.x.y. I use FeignClients I change Maven…
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
10
votes
1 answer

feign.RetryableException: Connection reset executing GET

We have a micro services architecture deployed on AWS ECS with Docker. The API Gateway and Eureka is from Spring. We have Java/NodeJS micro services which are working perfectly through the gateway but the .NET micro service, which uses SteelToe…
10
votes
2 answers

404 while using Spring cloud FeignClients

This is my setup: First service(FlightIntegrationApplication) which invoke second service(BaggageServiceApplication) using FeignClients API and Eureka. Project on github: https://github.com/IdanFridman/BootNetflixExample First…
rayman
  • 20,786
  • 45
  • 148
  • 246
9
votes
1 answer

How to set custom max connection pool size in @feignclient configuration in spring

How to set custom max connection pool size in @feignclient configuration in spring , @FeignClient(name = "content-cms", configuration = ContentCmsServiceFeignConfig.class) public interface FeignService { @RequestMapping(value = "/test/", method =…
9
votes
3 answers

How to Disable Ribbon and just use FeignClient in Spring Cloud

I am aware that we can force FeignClient to use OkHttp instead of Ribbon by providing the url Ex. @FeignClient(url="serviceId", name="serviceId") I want the OkHttpClient to be used even when just the name is provided. Ex.…
9
votes
2 answers

Spring Cloud: Feign and Http Connection Pooling

Can anyone please tell me if the Spring Cloud Feign Client provides or supports Http Connection Pooling, and if so how to configure settings like pool size? I can't seem to find this in the official documentation. Thank you.
RobP
  • 706
  • 1
  • 8
  • 20
9
votes
4 answers

How to exclude RequestInterceptor for an specific Spring Cloud Feign client?

I have a number of clients for which a "global" RequestInterceptor has been defined. For one of the clients I need this "global" interceptor to be excluded. Is it possible to override the full set of RequestInterceptors for a particular…
9
votes
2 answers

Feign Client + Eureka POST request body

I'm trying to use Feign and Eureka to forward a post request from server A to server B. Both servers are discrovered sucessfully by Eureka. This works: @Feignclient public interface MyFeignClient { @RequestMapping(value = "test", =…
Yoaz Menda
  • 1,555
  • 2
  • 21
  • 43
9
votes
2 answers

Forward a request header or the security context with a Feign client RequestInterceptor

I would like to forward a request header with a feign client RequestInterceptor but, within RequestInterceptor.apply, RequestContextHolder.getRequestAttributes() is null, so is SecurityContextHolder.getContext().getAuthentication() (where I could…
Sébastien Nussbaumer
  • 6,202
  • 5
  • 40
  • 58
8
votes
3 answers

Access URITemplate or RequestLine value in Feign RequestInterceptor / RequestTemplate

I'm developing an app against a cloud application that has hard api rate limits in place. In order to have my team get a feeling for how close we are in regards to those limits I want to count all API calls made from our app in a meaningful way. We…
Jan
  • 13,738
  • 3
  • 30
  • 55
8
votes
3 answers

Define different Feign client implementations based on environment

I have a Spring boot application which uses Feign to call an external web service via Eureka. I'd like to be able to run the application using a mocked out implementation of the Feign interface, so I can run the application locally without…
8
votes
4 answers

JSON response with dash in the key-name

I am using feign for my rest-calls. Unfortunately one of the responses I get looks something like this: { "customer-id" : "0123" } The JSON response automatically gets mapped to one of my POJO's. This response object can not have a property…
Robert van der Spek
  • 1,017
  • 3
  • 16
  • 37
8
votes
2 answers

Feign: Retry depending on response status

I am currently using Spring Cloud and Feign to consume a Microservice in my application. Since it can happen, that a database connection or the like fails in a single service instance, making it return 500 HTTP status code, I want to make sure, that…
8
votes
1 answer

Unreachable security context using Feign RequestInterceptor

The goal is to attach some data from security context using RequestInterceptor, but the problem, that the calling SecurityContextHolder.getContext().getAuthentication() always returns null even though it is not null (I am sure 100%). As I…
Domas Mar
  • 1,148
  • 1
  • 11
  • 23
1
2
3
15 16