Questions tagged [openfeign]

237 questions
0
votes
0 answers

Openfeign ErrorDecoder how to retrieve the original message?

I'm looking to find a way to retrieve the original response caused by an Exception that has been thrown inside a microservice called as a RemoteService through FeignClient. In the microservice "Maps" I expose an API to find a location by…
Paul Marcelin Bejan
  • 990
  • 2
  • 7
  • 14
0
votes
0 answers

Propagate Spring Cloud OpenFeign custom errorDecoder to client

I want to make custom errorDecoder and throw the error to the client. FeignClient: @FeignClient(name = "department", url = "${external.resource.department-url}", configuration = DepartmentClientConfig.class ) public interface…
0
votes
0 answers

Feign mixing up two separate request/response within the same client

I have been using feign for calls from one spring boot application to another in an infrastructure which has a large volume of API calls. Recently I have been getting an intermittent issue which says that the response received to one of the feign…
Dilanga Thalpegama
  • 165
  • 1
  • 4
  • 13
0
votes
1 answer

How can I add @EnableFeignClients

I added the feign dependency in the pomxml, and added the dependency manager accordingly. Why can I not add the @EnableFeignClients? I tried to do what i described before, but i cannot figure out why it doesn't work. Please help.
0
votes
0 answers

Feign client error: feign.RetryableException: PKIX path validation failed: Path does not chain with any of the trust anchors

I keep getting an error when I use feign to call another service. the error is {"timestamp":"2023-06-16…
0
votes
0 answers

How can Feign send nested object properties as HTTP GET query parameters using dot notation?

I have a Spring app 1 that calls another Spring app 2. It does this via REST using Feign: interface MyFeignClient{ @GetMapping("/car/search") List findCars( @SpringQueryMap Car searchCar); } In both apps, I have the…
James
  • 2,876
  • 18
  • 72
  • 116
0
votes
1 answer

Spring cloud feign vs open feign

As I see there are two options of using feign one of them is open feign and the other one is spring cloud feign which actually uses open feign internally. But I could not find too much information about advantages of each of them. How can we decide…
user1474111
  • 1,356
  • 3
  • 23
  • 47
0
votes
0 answers

Getting Id as null while calling a microservice from another microservice

I have 2 services question,quiz. In question I have questiondId,quizId, question,options,answer in Question service. In Quiz service quizId, title, maxMarks,noOfQuestions and List of Questions (not stored in DB). So, when I am calling a particular…
0
votes
0 answers

Is FeignClient calling SSE interfaces blocking?

My question is related to Feign and whether or not Feign calls to SSE interfaces are blocking. I have prepared a test API with SSE, the code as flow. Feign Client calls it take 10 seconds to display the results. But with WebClient, I can…
zy_sun
  • 175
  • 1
  • 11
0
votes
0 answers

How to parse error response body in OpenFeign and return it like success response

My application needs to behave 200 OK for all failure responses just like a business error. When response is 4xx or 5xx, ErrorDecoder runs and it needs to return Exception. However, I want to parse error message body and just return it. Here is the…
0
votes
0 answers

Feign : Basic Auth issue

I want to call a microservice from an other using a Basic Auth. I have a Feign Client configured as follow : package com.example.test.rest; import com.example.test.config.FeignClientConfiguration; import…
fer mou
  • 1
  • 1
0
votes
0 answers

Multiple feignclients using boilerplate interfaces from single spring service

im trying to setup a proxy to multiple spring controllers using feignclients. A very simple explanation of the architecture is that im creating spring microservices and using consul for service discovery and a key-value store (mainly used for…
Filip Pitak
  • 31
  • 10
0
votes
0 answers

Spring Cloud Feign Client @RequestParam with List parameter can not join with custom delimiter

@CollectionFormat(feign.CollectionFormat.CSV) [...] @RequestMapping(method = RequestMethod.GET, value = "/search/findByIdIn") Resources get(@RequestParam("ids") List ids); creates a request like: /search/findByIdIn?ids=1,2,3 ...…
Martin Fischer
  • 469
  • 1
  • 7
  • 21
0
votes
1 answer

Can OpenApi Generator generate interface feign clients?

Is it possible to generate feign clients using OpenApiGenerator? This is my current setup: plugins { id 'java' id 'org.springframework.boot' version '2.7.11' id 'io.spring.dependency-management' version '1.0.15.RELEASE' id…
dev-rifaii
  • 217
  • 2
  • 9
0
votes
1 answer

Using java AOT /native compilation with openfeign 2022.0.2

I read that starting spring-cloud 2022.0.0, you can use native compilation. I'm using 2022.0.2 (spring-cloud-starter-openfeign:4.0.2), but when I use an OpenFeign client with native compilation, I get the following…
Rik Schaaf
  • 1,101
  • 2
  • 11
  • 30