Questions tagged [openfeign]
237 questions
1
vote
1 answer
Calling micro service from spring cloud gateway
In spring cloud gateway, added a filter that check for the authentication and authorization for further processing of request. I am calling authentication service using feign client, but I am getting the below error while invoking my service through…

Gulshan Kumar
- 74
- 8
1
vote
1 answer
Send MultiValueMap params as http link key-value values
I have this MultiValueMap with params which I would like to send as http link key-value values
MultiValueMap map = new LinkedMultiValueMap<>();
map.add("entityId", "123456");
map.add("amount", "123456");
Feign…

Peter Penzov
- 1,126
- 134
- 430
- 808
1
vote
0 answers
Feign client sorting problem with Turkish characters into response
I use feign to make request to another microservice with pageable and my custom encoder to manage sorting/paging;
@GetMapping(
value = {"/add-ben"},
produces = {"application/json"}
)
BaseResponse>…

korayguney
- 169
- 1
- 11
1
vote
0 answers
Getting null body in response from feign client, even though a direct request is returning an entity
I have this Feign Client in my spring boot application :
@Component
@FeignClient(value = "apiKeyManager", url = "http://localhost:8081/", configuration = FileUploadConfiguration.class)
public interface ApiKeyClient {
@RequestMapping(method =…

MickeyThreeSheds
- 986
- 4
- 23
- 42
1
vote
2 answers
Why get java.lang.ClassNotFoundException when run as jar, but work well with IntelliJ IDEA
spring boot version : 2.4.1
spring cloud version : 2020.0.0
My code
@Configuration
public class BaseConfig {
@Bean
public Module sortJacksonModule() {
return new SortJacksonModule();
}
}
my pom.xml dependency
…

min
- 953
- 1
- 11
- 23
1
vote
0 answers
SpringBoot MultipartFile upload between Microservices using OpenFeign
So i have 2 microservices on SpringBoot, A and B. An api call to A must be done from B and it requires the passing of the MultiPartFile using openfeign client.
Problem:
Run into following errors
java.net.SocketTimeoutException: Read timed out
at…

Sumanth Balaji
- 11
- 1
1
vote
1 answer
How to add dynamic header values to feign-client through Feign interceptor from current request?
I am new to Spring-cloud-openfeign. I am trying to build a micro-service based system. To make things look simpler, just take 3 of those services, which are Gateway, Service-A, Service-B. When I make a request from my frontend to Service-A through…

sebin vincent
- 330
- 3
- 12
1
vote
0 answers
FeignClient could decode response
I'm using FeignClient in spring boot. I have some issues.
My config file is:
@Configuration
@EnableFeignClients
@Import( FeignClientsConfiguration.class )
public class FeignConfiguration
{
@Bean
public Client client()
{
return new…

Nasibulloh Yandashev
- 508
- 1
- 9
- 32
1
vote
1 answer
Send multiple key in Feign Client
I have a nxt request POST with form url encoded using Feign Client
@FeignClient(
url = "${url}", configuration = NxtApi.Configuration.class)
public interface NxtApi {
@PostMapping(value = "nxt", consumes =…

Kelvin Santiago
- 305
- 1
- 10
1
vote
1 answer
Openfeign How to use @Headers annotation with different produces and consumes types?
I want to use Feign client in my project but some endpoints produces text/plain while consuming application/json. Right now I have something like this. Method is producing plain/text and will consume application/json. Is there a way to fix it? Note…

gozluklu_marti
- 79
- 1
- 7
- 26
1
vote
0 answers
Request processing failed; nested exception is feign.RetryableException: Read timed out executing POST
I have made POST call with feignClient with "XYZ" object request message, then I didn't get response within "5" seconds (This is expected), so I sent "ERROR" object request to the same service but I didn't get any response and causing below…

Pand005
- 1,095
- 3
- 23
- 53
1
vote
1 answer
How to configure Feign Client to work with API Gateway?
I have the following services
Service A - Sends request to service B using RestTemplate.
Service B - Has an end point that returns "Hello Universe".
Service G - "Spring Cloud Gateway".
Service A sends request to Service B using API Gateway URL using…

rakesh mehra
- 618
- 1
- 9
- 21
1
vote
0 answers
Spring Cloud Open Feign: linebreaks "\n" stripped from gzip response body
Linebreaks ("\n" or "\r") are been stripped out from gzip response body, when using response compression configuration (as below) in Spring Cloud Open Feign. There are no errors raised. Linebreaks are just been replace by an empty string "". The…

Gabriel C. Stabel
- 591
- 6
- 12
1
vote
0 answers
How Can I configure separate resilience4j circuit breaker for each instance registered under the SAME Eureka service
Here is my scenario:
Eureka Server: MY-APP-SERVICE with 3 instances of same spring boot app running on e.g localhost:8080, localhost:8081 and localhost:8082
OpenFeign client (Annotated as follow)
@FeignClient(name="MY-APP-SERVICE")
public interface…

dovan
- 11
- 1
1
vote
1 answer
Feign ErrorDecoder is not invoked - how to configure feign to use it?
As i understand the decode() method of the feign ErrorDecoder will be called when a request responds with a status code != 2xx. Through debugging my tests i found out that the decode() method of my CustomErrorDecoder is not invoked on e.g. 504 or…

dnl.re
- 373
- 6
- 23