i have a problem with FeignClient. Right now, I have authentication & authorization via okta. I have 3 services(one is api-gateway, one is discovery service - Eureka and one is backend). In api-gateway I have declared backend client:
@FeignClient("backend-service")
public interface BackendClient {
@GetMapping("/api/things")
ResponseEntity<List<Thing>> getThings();
}
Here is my application.yaml part with feign declared
feign:
client:
config:
default:
connectTimeout: 160000000
readTimeout: 160000000
hystrix:
enabled: false
However, when request is send, I get only
feign.FeignException: status 302 reading BackendClient#getThings()
Do You have any idea does this happen and how to solve it?
Additions: Both services are registered on Eureka, i can check that they exist and they are up and healthy.
Zuul routes are configured properly.