Questions tagged [openfeign]
237 questions
1
vote
1 answer
Unable to get traceId when using @feignClient
I have 2 services S1 and S2. Calling S2 using annotated Feign client(@FeignClient) from S1. The issue is, I am unable to get traceId in S2.
But when I try to call S2 using RestTemplate it works.
Any help will be appreciated
Edited:
I have find out…

Zeeshan
- 1,173
- 5
- 19
- 26
1
vote
0 answers
Spring boot feign client integration test configuration
Good day
I am trying to write Feign specific integration test and have specific configuration to enable feign auto configuration it looks like that
@Profile({Profiles.FEIGN_INTEGRATION_TEST, Profiles.PROD, Profiles.DEV,…

artjomka
- 1,229
- 3
- 15
- 31
1
vote
1 answer
How to configure Spring Sidecar with an internal RestController, and a FeignClient
I have a microservices scenario where a Sidecar (spring boot app) maps the endpoints of a python webserver.
The python server listens on 5000 and executes a calculation, so we decided to map its homepage with "calc" prefix in the URI, so we have the…

Sergio Della Cioppa
- 51
- 1
- 8
1
vote
3 answers
Feign does not resolve name
I am trying t call another service using Spring Cloud's Open Feign but here is the response I keep getting:
{
"timestamp": 1579015052962,
"status": 500,
"error": "Internal Server Error",
"message": "auth-service: Name or service not known…

King Einsteinet
- 71
- 1
- 7
1
vote
1 answer
Feign handles a 301 as an exception
I'm working on an app that uses the Feign client to call another service. The problem now is I keep getting a 301 thrown as an Exception. How do I propagate this to ignore 301 as an error and fetch the actual response from the service?
This is the…

King Einsteinet
- 71
- 1
- 7
1
vote
1 answer
Disable Feign logging on some API calls
I am using following configuration to enable logging for API calls made using feign
#Feign properties
feign:
client:
config:
default:
loggerLevel: full
My application is making calls to 3 APIs and feign is logging request…

Ravikiran butti
- 1,668
- 2
- 11
- 18
1
vote
1 answer
Feign Client fails to compile, it treats BindingResult as a second Body parameter
I'm learning to use Spring's Feign Client, so I've built two simple projects (serviceA and serviceB) to test it out. I have the following code:
serviceA rest interface:
@RequestMapping("/users")
public interface UserRest {
@PostMapping
…

DraegerMTN
- 1,001
- 2
- 12
- 21
1
vote
1 answer
jaeger tracing and spring cloud OpenFeign
I am using a spring Cloud openFeign for making request from service#1 to service#2
When I use restTemplate I can correctly see 2 requests in jaeger tracing. But when using openFeign I see only 1 request. Is there any way of integrating jaeger and…

Kristjan
- 409
- 5
- 18
1
vote
0 answers
How do I get my RegistryBuilder to be Autowired into feign's HttpClientFeignLoadBalancedConfiguration?
I am trying to achieve a mutual TLS connection to an endpoint that we connect to using a feign client with apache httpclient underneath.
I attemped this configuration, that does not work, it just terminates with a handshake_failure message and as…

Spork
- 1,631
- 1
- 21
- 37
1
vote
1 answer
Is there a way to log only the body with feign spring client?
Is there a way to log only the body with feign spring client?
Using the Log.level I seem to only be able to only include the body with the full logging and in that case it is printing the headers too.
Which I don't want to see in the logs.

Funzo
- 1,190
- 2
- 14
- 25
1
vote
1 answer
Microservice feign infinite loop of invocations?
I am confused about how an infinite loop of feign calls might behave.
An example:
Assume I have 2 APIs, A & B.
if I call API A, which in turn calls API B via a feign HTTP call, which in turn calls API A again via feign, will it recognize this and…

sa突袭
- 13
- 4
0
votes
1 answer
Feign client is not working with Cloud gateway? throwing exception: java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking
Building a simple microservice using Spring Boot version 3.1.3, which has two services one is api-gateway and another fisherman-service. API-Gateway is using cloud-gateway, eureka-cient and openfeign and the fisherman-service is a spring boot…

Narendra Choudhary
- 55
- 7
0
votes
0 answers
Java/Spring Soap requests
Please tell me the library for working with soap requests in the context of java / spring ?
Tried jaxb for unmarshalling but having problems with namespaces
javax.xml.bind.UnmarshalException: unexpected element…

Георгий Демерчян
- 1
- 1
0
votes
0 answers
OpenFeign testing with Mockito
I'm trying to do a mock calling a feign client but when I execute the test, the feign client returns null.
I'm using when().thenReturn() but seems not working.
Someone knows how to accomplish this?. I don't need real call to feign client, only mock…

daniel-lopez
- 1
- 1
0
votes
0 answers
Fallback with @TimerLimit @CircuitBreaker @Retry and Status Code
I'm using OpenFeign in order to communicate syncrounsly between two microservices Order and Inventory.
Microservice Order has one method configured with 3 annotations from resilience4j as follows:
@PostMapping
@TimeLimiter(name="inventory")
…

gustavomr
- 69
- 2
- 16