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
2 answers

mock implementation for feign client would not be autowire

i want to test my spring project. i need to mock a feign client in a test class but normal implementation would be autowired instead of mock implementation. here is top of my codes. plz help. @Profile("test") @Primary @Component public class…
0
votes
0 answers

FeignClient call with consul service throws connection refused in docker container

I have docker containers for consul and for my services. I have feign client interface trying to reach a service registered in consul. it works in the local testing (using localhost); however the same does not work in the container environment. the…
Swetha V
  • 300
  • 5
  • 16
0
votes
1 answer

How to get self links of embeddedItems from Resources from Spring Data Rest and FeignClient

I have an application where I am using Spring Data Rest to expose my entities in one service, and then use FeignClient from another service to access and update those resources. In examples I've seen POSTing a @OneToMany sub-resource association in…
0
votes
2 answers

how to implement spring feign post and delete

I build a spring cloud service ,contains eureka, user-service(spring-data-rest user api) and a feign-client service . In the feign client : @FeignClient("useraccount") public interface UserFeign { …
Kery Hu
  • 5,626
  • 11
  • 34
  • 51
0
votes
3 answers

java.lang.IllegalStateException:Method [method name] can only contain 1 method field. Found: []

Caused by: java.lang.IllegalStateException: Method findByApplicationName can only contain 1 method field. Found: [] at feign.Util.checkState(Util.java:117) ~[feign-core-8.15.1.jar:8.15.1] at…
Chintamani
  • 1,076
  • 7
  • 23
  • 47
0
votes
1 answer

Spring Cloud: Missing Server Instance using Ribbon and Feign Client (but not Eureka)

I am trying to use @FeignClient for the first time in a simple REST client test application. I want to make use of Ribbon for the load balancing between two server instances, but not use Eureka. Following the documentation I have configured my…
RobP
  • 706
  • 1
  • 8
  • 20
-1
votes
1 answer

Error with Spring Ecossystem and OpenFeign

Stack trace: java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.openfeign.FeignAutoConfiguration.cachingCapability at…
Gabriel Menezes
  • 83
  • 1
  • 1
  • 10
-1
votes
1 answer

How to resolve InvalidTypeIdException when using @FeignClient?

I have a Spring Boot Library package common-library, within it contains a DTO class, say OrderDTO [package- com.example.common.dto]. I have two microservices - Core & Notification service. In Core service I have Order class in package…
Ashish
  • 83
  • 7
-1
votes
3 answers

Could not autowire FeignClient in service

I have a simple API who it uses a FeignClient to call on other api and get an access token. However today i don't understand why my client is null. Can you explain why on run, my feign client is null…
A.Rouze
  • 51
  • 1
  • 10
-1
votes
1 answer

feign client internal server exception (rest template didnt work either)

The last time i've posted i got an accessing token error. I also tried with rest template ; still the same error. "timestamp": 1597323995055, "status": 500, "error": "Internal Server Error", "message": "Error requesting access token.", "path":…
-1
votes
1 answer

Using FeignClient to get data from external service

I am trying to get data from external service and put the in database. @FeignClient(value = "name-feign", url = "http://localhost:8081") public interface Client{ @PostMapping("/Efforts") List getAllEfforts(); } I added…
-1
votes
1 answer

Spring FeignClient: NumberFormatException when parsing service port

I am using Netflix Eureka + Netlifx Zuul and am trying to use Feign client to send a request from one microservice to another. I am able to access all microservices through zuul, however, when I try to make request from one microservice to another,…
Blarc
  • 51
  • 6
-1
votes
1 answer

Spring boot fiegn client

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feignEncoder' defined in…
Suryazi
  • 11
  • 1
-3
votes
1 answer

How does your project handle the situation when feign calls the remote method to return to null?

How does your project handle the situation when feign calls the remote method to return to null?
1 2 3
48
49