Questions tagged [openfeign]

237 questions
0
votes
1 answer

When sending data through openfeign, null is received

I have a trouble. When i send dto by feign clients like this: @FeignClient(url = "${external.service.cloudbeds.url}", name = "CloudbedsIntegrationClient") public interface CloudbedsIntegrationClient { @PostMapping(value =…
0
votes
0 answers

Nested exception from dependency in Maven - java.io.FileNotFoundException: ServerPropertiesAutoConfiguration.class

I have a project on Spring Boot 2.3.6, Spring Cloud Hoxton.SR9 with dependency "spring-cloud-starter-openfeign". Also it has jar-dependency "notificli" from internal project. Here is the Pom.xml:
0
votes
0 answers

Spring Test with @RestClientTest and @FeignAutoConfiguration not working

I have the following configuration: @SpringBootApplication @EnableFeignClients public class Application { @FeignClient(name = "theclient") public interface TheClient { ... theclient: ribbon: listOfServers: http://server:8080 And have the…
marcovmx07
  • 23
  • 6
0
votes
0 answers

FeignClient got "503 Service Unavailable" error in SpringBoot application

I have two simple services, service A is calling service B using feignclient. these two services are really simple, but I often got 503 Service Unavailable error when calling to service B. the first call is always working, but this error happens…
0
votes
1 answer

Call 3rd party api which is not part of project Eureka registry via Feign client

I need to invoke 3rd party api e.g.: https://google.com.systems.uk/some-api/.... (this is fake api but yes 3rd party service). This api is not part of my microservices and is not registered on my eureka registry and I have not included any routing…
user4811324
0
votes
1 answer

Error only with maven: NoClassDefFoundError: feign/codec/Encoder

I created a project in Eclipse with the Maven wizard and edited the pom.xml file to include my dependencies. My project, which uses Open Feign, builds and runs in Eclipse, but I get the following runtime error when I build it at the command line…
Ellen Spertus
  • 6,576
  • 9
  • 50
  • 101
0
votes
1 answer

Multiple @RequestBody in feign client exception when executing service

I am giving call from User microservice to Account microservice via feign client. I am passing 3 request body in method call. I am getting exception when I am executing user service stating that multiple request body is present in feign…
user4811324
0
votes
0 answers

Feign + Eureka without springboot

I need to use Feign and Eureka from spring app to call a microservice which is registered on Eureka server. From the OpenFeign github page here I found how to use feign in spring. I couldn't find anywhere how to use Eureka and Feign together in…
god speed
  • 13
  • 3
0
votes
1 answer

Multiple form-data with openfeign

I try to define multiple params in form-data with spring openfeign org.springframework.cloud spring-cloud-starter-openfeign (version 2.1.9.RELEASE) here is the…
0
votes
1 answer

Service is not being executed with CompletableFuture

I've been trying to use Resilience4j + OpenFeign to call services. When I get an error, the timeout is working properly, however, in case of success it always returning null and I couldn't find why. Can someone please help me on this? Creating the…
cmsantos
  • 317
  • 1
  • 4
  • 13
0
votes
1 answer

How I can use Sleuth Span in spring boot 2

Trying to upgrade from spring boot 1 to 2, The problem I'm facing is with tracing In spring boot 1, we are using sleuth Trace that seems like deprecated in the spring boot 2 and suggesting to use 'brave'. One of the problems is our another…
Srinath
  • 3
  • 1
  • 4
0
votes
1 answer

How to get Patch rest method to work with Feign client

Trying to get Patch working with my feign client. Ive added io.github.openfeign:feign-httpclient:jar:10.2.3 to the classpath but still get an exception when trying to make the Patch call Invalid HTTP method: PATCH executing PATCH... Feign…
Marquis Blount
  • 7,585
  • 8
  • 43
  • 67
0
votes
1 answer

Feign client always throws a null pointer exception in a Spring boot/Crawler4j app

I am running a Crawler4j instance in a Spring boot application and my OpenFeign client is always null. public class MyCrawler extends WebCrawler { @Autowired HubClient hubClient; @Override public void visit(Page page) { // Lots of…
Nikolai Manek
  • 980
  • 6
  • 16
0
votes
1 answer

OpenFeign client doesn't apply "Content-Type" header value: 415 in response

I want to perform DELETE using feign: public static T createClient(Class type) { return Feign.builder() .client(new OkHttpClient()) .encoder(new GsonEncoder()) .decoder(new CustomGsonDecoder()) …
splekhanov
  • 116
  • 1
  • 2
  • 9
0
votes
1 answer

How to add specific configuration to a Spring Cloud OpenFeign client defined in a library?

I use a library that defines some OpenFeign clients using spring-cloud-openfeign. I need to add an interceptor to these clients to add an authorization header without changing the library code. So far I just defined the interceptor as a Spring bean…
lbilger
  • 304
  • 1
  • 8
1 2 3
15
16