Questions tagged [spring-cloud-feign]

Use this tag for question related to the use of Feign declarative REST client inside the spring cloud ecosystem.

Feign declarative REST client used inside the spring cloud ecosystem.

734 questions
0
votes
0 answers

Why does feign client timeout setting (as in documentation) not works?

I try to configure feign client connect timeout, as defined on official documentation, but it does not work. The app is just simple demo app. MyFeign.java package com.example.demo; import org.springframework.cloud.openfeign.FeignClient; import…
0
votes
0 answers

How to catch exceptions thrown by the service in cloud feign

When using spring cloud feign, I want to catch exceptions thrown by the service, but all I can get: nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of ...
0
votes
1 answer

How to upgrade the version of spring-cloud-starter-openfeign without upgrading the version of spring-cloud-dependencie

In my springcloud project, I defined the dependencyManagement in my pom.xml. org.springframework.cloud
Gara Ying
  • 11
  • 2
0
votes
0 answers

Is there any way to forward an HttpServletResponse as RequestParameter in feign proxies?

I have two microservices, one api-gateway and a logging-server which logs all important logs from all the microservices. I'm using feign proxy and spring-mvc to communicate in my microservices. so far I have the LoggingController in logging-server…
midugh
  • 608
  • 5
  • 21
0
votes
1 answer

How to Temporarily Disable Eureka Server support in Ribbon and FeignClient

I have two micro-services(car-management-service & rent-management-service), in rent-management-service i'm calling car-management-service through Ribbon& FeignClient with the help of Eureka Discovery Server. And it's working perfectly. I have…
0
votes
1 answer

Feign Client couldn't find custom registered eureka service

I will tell little bit about what I am trying to achieve. I have a spring boot application which is an Eureka client and registers itself as a data-service service. After this application startup (ApplicationReadeEvent.class) I am registering also…
0
votes
1 answer

Junit Mock Repeated Feign Client Calls but Only the Last Mock Returned Multiple Times

I have a Spring Boot application which uses Feign Client to call a microservice to add users to the User table when a new department is created (new department will be inserted into the Department table). The request looks like: Request: { …
jlp
  • 1,656
  • 6
  • 33
  • 48
0
votes
0 answers

Hystrix does not terminating thread after calling fallback

I am testing a feign client slow response using chaos monkey spring boot. Fallback is getting called and response is returned back but the method execution continues. logger.info("Get the value from the organization ms…
0
votes
2 answers

Spring RestAPI with Feign Client and Pageable

I have a working API with all the CRUD methods i need, but i also have a Feign Client, that is throwing me and exception when my pageable GET method is called. I have tried changing it to List<>, but in the end i need it to remain Pageable, i got no…
Thainá
  • 3
  • 1
  • 2
0
votes
0 answers

How can i get response of a microservice in spring cloud gateway: and after getting that pass it to another microservice

I do not want to use feign or rest template. My scenario is: i need to get the JWT token from auth service then pass it to the order cancellation service. I do not want that user add the returned token rather i want to get the token in api gateway…
0
votes
1 answer

Using Feign Client calling 3rd party API throwing Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token

I am calling 3rd party search api using Feign client.Below is my code to call the 3rd party URL: @FeignClient(url="http://api.giphy.com/v1/gifs", name="GIPHY-CLIENT") public interface GipherSearch { …
stumbler
  • 647
  • 3
  • 11
  • 26
0
votes
1 answer

Spring cloud - Server and client

I'm config an application using spring cloud eureka. I start my discovery app in the 8761 port and reaching the console in "http://localhost:8761". So, I start my client application and it's appear in the "Application" page of eureka console. First…
0
votes
1 answer

Pagination and criteria for spring feign client

I'm stuck on setting up a feignclient of one of my microservices. I use criteria (for filtering) and pagination. On one of my microservices I have a service rest and the other use a feignclient to request it. AccountCriteria (criteria interface from…
Pixotic
  • 3
  • 3
0
votes
1 answer

Feign Registration - Spring Cloud - Change Target without ribbon over-ride

Introduction I would like to be able to have two different spring profiles, and depending on the profile to change to a hardcoded address for our feign builders. Currently was have the following: return builder.target(cls, "http://" +…
Menelaos
  • 23,508
  • 18
  • 90
  • 155
0
votes
1 answer

How to upload multiple Multipart files using feign client in Microservice architecture

I'm trying to upload multiple multipart file using feign client, but I am not being able to do so. After few research, File Upload Using Feign - multipart/form-data File upload spring cloud feign client Array Multipart[] file upload using Feign…
Smriti mool
  • 139
  • 4
  • 11