How to solve Timeout FeignClient
Add the following properties into application.properties file, in milliseconds. feign.client.config.default.connectTimeout=160000000 feign.client.config.default.readTimeout=160000000
Add the following properties into application.properties file, in milliseconds. feign.client.config.default.connectTimeout=160000000 feign.client.config.default.readTimeout=160000000
After doing research, and with help of @Bloodysock, I found that I was missing registration of remote server in ‘client-app’ micro-service. The document is at Spring Cloud Netflix. I used Ribbon without Eureka with configuration in application.yml in ‘client-app‘ micro-service as: movie-api: ribbon: listOfServers: http://localhost:8090
It can be done with a “serviceId” instead of a “url”. E.g. @FeignClient(“foo”) interface Client { … } and foo.ribbon.listOfServers: localhost:9000 e.g. see http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-ribbon-without-eureka for docs.
You need to tell the Feign scanner where to locate the interfaces. You can use @EnableFeignClients(basePackages = {“my.external.feign.client.package”, “my.local.package”}).