Questions tagged [spring-cloud-netflix]

Spring-Cloud-Netflix provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

0
votes
0answers
12 views

Spring Cloud Gateway : disable default routes

I'm using spring cloud to manage my microservices. For security reasons, for one specific microservice (name it ms_secure), I want to use custom route choose a specific microservice version depending ...
0
votes
1answer
23 views

Netflix Eureka Server and Client instance registration issue with Docker swarm

We are trying to deploy Netflix Eureka Server on Docker container which is a Spring Boot application. We are deploying it as a docker service with Docker swarm for container orchestration. Everything ...
0
votes
0answers
16 views

Handle exception with Hystrix in Spring Cloud (Amazon SQS listener)

I am trying to add Hystrix to my application which listens (@SqsListener) to a queue (Amazon SQS) and performs operation the message. The code is working for a RestController but I am not able to get ...
0
votes
1answer
20 views

How to use eureka.client.service-url: property of netflix eureka in spring cloud

I am trying to add Eureka client in one of the microservices, but i am unable to figure out if how can I use the service-url. I am using the Greenwich.SR1 version of spring-cloud. Below is my ...
0
votes
0answers
32 views

@LoadBalanced WebClient doesnt work with @RestClientTest unit tests

I have a few tests annotated as @RestClientTest that uses a @LoadBalanced WebClient.Builder to call a service. I have a MockWebServer running to mock the service on the correct port. I use Ribbon for ...
1
vote
0answers
27 views

Sticky session Ribbon rule in Zuul always has null request

I am attempting to implement a sticky session load balancer rule in a Zuul proxy service. I am using the code from this example: https://github.com/alejandro-du/vaadin-microservices-demo/blob/master/...
0
votes
0answers
31 views

How to Pass access token on Spring Cloud Gateway

I'm new on OAuth2 and Spring Cloud Gateway(And WebFlux things). My team decided to move from Zuul gateway to Spring Cloud Gateway. And current Spring Cloud version is "Greenwich.SR1" The problem is ...
0
votes
1answer
14 views

@LoadBalanced WebClient and normal WebClient

is it indispensable to inject two WebClient beans in a microservice? One for client load balance (Eureka, Ribbon), the other for requesting the third party's API. I got such response when I just ...
0
votes
1answer
50 views

Problem deserialize flux/mono into Feign Spring Cloud

i develop a micro services application with Kotlin Webflux (Reactor3), Eureka, Zuul and Feign. Except that I always have an error when I make a call to an API via my micro service Feign. It looks like ...
0
votes
0answers
21 views

Failed to start bean 'eurekaAutoServiceRegistration'; casued by No Scope registered for scope name 'refresh'

Failed to start bean eurekaAutoServiceRegistration caused by No Scope registered for scope name 'refresh' @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, ...
0
votes
0answers
47 views

spring zuul gateway in kubernetes

I am introducing in microservices with spring and kubernetes. I have gateway services made with spring-cloud-starter-netflix-zuul that works like an apigateway I define Zull gateway like this: ...
-1
votes
1answer
34 views

Microservices are getting killed automatically

I am using Eureka Server for microservices, I have deployed microservices on VPS. My server is having Centos 7. I am deploying each microservice on different screen but after some time microservice ...
0
votes
1answer
29 views

How to disable zuul decoding encoded slash %2F?

I'm using a solution with Spring Cloud Zuul and Eureka. The REST application register itself with Eureka and Zuul provide access to the Service via Eureka Service Discovery. I had to configure the ...
0
votes
0answers
11 views

Using Zuul as single entry point to the microservices and Configuring end point

I did to setup zuul and the underlying microservices in a way that all services will be under the '/' context. For example: Microservice 1 has : http://localhost:8081/context_path/api/hello ...
0
votes
0answers
17 views

Spring cloud Turbine service is not subscribed on Rabbit stream

In my spring cloud application I want configure turbine service for dashboard. Example below: server: port: 0 turbine: amqp: port: 8989 --- spring: profiles: docker rabbitmq: host: ...
0
votes
1answer
28 views

spring eureka - Error resolving template [eureka/status], template might not exist or might not be accessible

I am following this tutorial to implement a microservice architecture within my project. First I added the following dependencies to my project: </dependencies> ... <dependency>...
0
votes
0answers
45 views

Some problems in registering to Eureka Server with Spring Security

I can not register a micro service to Eureka Server with Spring Security. I have tried almost every solution on the internet. But I haven't solved it. Spring Boot version: 2.1.3.RELEASESpring Cloud: ...
0
votes
0answers
28 views

Http 404 response , without any response body on sending request with ribbon client

I am getting Http 404 with no response body from a server for a rest api . Server is a spring boot application with rest apis. The client uses RibbonClient to send requests to a list of servers. ...
0
votes
1answer
42 views

Eureka not discovering service by name

I'm running simple eureka service discovery example as given in the link below : https://www.logicbig.com/tutorials/spring-framework/spring-cloud/rest-template-load-balancer.html I observed that ...
0
votes
0answers
21 views

Zuul multiple wildcards and nested routes

Using Zuul (version 1.3.1) I want to have the following routes config: zuul: routes: serviceA: path: /us/*/a/** serviceId: serviceA strip-prefix: ...
0
votes
0answers
8 views

ZUUL Pre-Filter Use Case (Pre-Filter App Authorization)

I would like to leverage a ZUUL pre-filter to interrogate a request, pull a header value out of the request, check another endpoint or property file, and compare the two. And if there is a gap, ...
0
votes
1answer
77 views

Registering in Discovery Service for multiple IPs

We are using Netflix OSS in our current project which is about to go live within a few weeks. Everything was good until last week. services were getting registered in discovery, the gateway was able ...
2
votes
1answer
25 views

How to re generate access_token in Oauth2.0 with refresh_token

We are using Spring Cloud Netflix Zull as Gateway Application for our backend services. Front end is Angular. But we are testing endpoints in Postman only(Front end is under development). We have one ...
-1
votes
1answer
54 views

Netflix's Zuul Error filter implementation

What would be an example implementation of an error filter for netflix's zuul gateway service? All the examples I have found have been either incorrect or too old to work.
0
votes
0answers
18 views

Is it possible to run spring cloud netflix across multiple openshift datacenters

On our team we are trying to use spring cloud netflix on the openshift origin platform. We are able to easily run java/spring boot/cloud netflix all the way up until we need pods to register ...
0
votes
0answers
36 views

High Thread Count and CPU utilization by Eureka Discovery server, after upgrading to new SpringBoot and Cloud Version

Recently we upgraded our SpringBoot and Cloud Version of Eureka Discovery Server App, post upgrade we are experiencing high Thread count and high CPU utilization. What would have triggered this ? Are ...
0
votes
0answers
31 views

Not able to run a service with eureka client. It breaks with “Cannot create Jersey client” error

Not able to run eureka client because of error 'Cannot create Jersey client' I have one service 'insureconnect' which is a dependency in this spring-auth service. If I run spring-auth without ...
0
votes
0answers
12 views

What needs to set for Configuration of a FeignClient

I am trying to override the default configuration for one of my FeignClient. However, there is a mismatch in the documentation so I don't know which one I should follow. In the section of Feign for ...
0
votes
0answers
14 views

Spring cloud Zuul url configuration

I am trying to run an example with zuul and Eureka server. Below are my configurations: eureka-service server.port=8761 eureka.client.register-with-eureka=false eureka.client.fetch-registry=false ...
0
votes
0answers
26 views

Eureka server not finding the context-path in client URL

I'm trying to build a POC for micro-service architecture. I'm using Spring Cloud to build the microservices along with Netflix Eureka for service discovery and zuul as proxy service. I'm able to ...
0
votes
1answer
50 views

Spring Boot with Hystrix

I am using Spring Boot with Hystrix for my university project. The problem I have is when I add Netflix Hystrix dependency to pom.xml file and run the program, It throws an Error called ...
0
votes
0answers
52 views

Running Eureka multiple Pods on Same Openshift cluster

I have created a Eureka service in prod and have only one openshift cluster. During time if i run Eureka as single pod am encountering errrors in discovery due to pod getting killed etc, is there a ...
0
votes
1answer
36 views

Spring Cloud Zuul for composite API calls?

I am starting to build a Microservice API Gateway, and I am using Spring Cloud Zuul to help me with the routing. But some calls to the Gateway API will need multiple requests to different services. ...
1
vote
1answer
91 views

How to forward to different path using netflix zuul?

I'm using netflix zuul embedded in a spring boot 1.5.x application. Behind zuul are some microservices. These microservices expose public endpoints under /public/** . Now i want to expose these ...
0
votes
1answer
162 views

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder

I am learning springboot and microservices. I have created 3 services and all are working fine. Now i have created discovery server, using start.spring.io by adding "Eureka Server" as dependency. My ...
0
votes
1answer
177 views

Custom Loadblancer rule in Spring cloud Ribbon Zookeeper

Having problem in setting up custom load balancer rule with ribbon-zookeeper-discovery, Current rule provider are ROUND_ROBIN, RANDOM and STICKY, However I wanted to have custom rule. There is no way ...
0
votes
0answers
13 views

How to redirect to zuul api gateway when we hit a service directly

I'm new to spring cloud microservice how to redirect to zuul api gateway when we hit a service directly From Browser --> ApiGateway --> Eureka Server --> Service - this flow works fine. If we hit a ...
0
votes
1answer
24 views

'FailedToCreateRouteException' Amazon SQS introducing Netflix-Hystrix to Spring Project

I'm trying to introduce Hystrix to my Spring Project, however when I add the following dependency to my pom (tried from 1.4.4 to latest version 2.1.1): <dependency> <groupId>org....
1
vote
0answers
22 views

Unable to find zuul properties in application.yml

Unable to find below zuul properties in application.yml attached the pom.xml. I hope I added the necessary dependency or do I missing anything. How to connect the services with gateway. application....
0
votes
0answers
50 views

Why always I ma getting connection time out exception in zuul api gateway?

I am using Netflix Zuul and Eureka . There are 3 instances of my client application registered in Eureka and all are up and running. always I am getting connection time out exception? Please find ...
0
votes
0answers
31 views

How to change multi-part file upload charset with Chinese encoding

My project is using Spring Cloud and Spring Boot. One server is fastadfs server. All of the servers must send request through Zuul gateway. I upload a file with Chinese encoding, the server upload ...
0
votes
3answers
180 views

Feign with Hystrix Fallback throwing bean error on startup

I am working on an example from here about Feign and Hystrix. Without the Feign fallback property, everything works okay. But when I add the fallback property and create the fallback class that ...
0
votes
1answer
15 views

How to call Spring cloud eureka service in TIBCO BE and BW. Is it posible?

I want to call Spring cloud eureka application from TIBCO BE and BW for registering the tibco applications in Eureka service registry.
0
votes
1answer
168 views

Create a Custom Spring Cloud Netflix Ribbon Client

I am using Spring Cloud Netflix Ribbon in combination with Eureka in a Cloud Foundry environment. The use case I am trying to implement is the following: I have a running CF application named ...
1
vote
1answer
207 views

ZuulFilter is not invoked

I use: spring-boot 2.1.2.RELEASE spring-cloud Greenwich.RELEASE Zuul dependency: implementation 'org.springframework.cloud:spring-cloud-starter-netflix-zuul' I'm invoking a microservice from ...
0
votes
0answers
38 views

Spring Cloud : Load Message Sources from config server

I'm working on Spring cloud project (Spring Boot + Eureka API ) that contains client , registry and a config server , so I need to load Message properties from the config Server : I have already a ...
0
votes
0answers
87 views

Trusting HTTPS certificates between Docker Containers

I have an HTTPS certificate that I generated with mkcert: mkcert localhost 127.0.0.1 ::1 `hostname` discovery I'm building a Spring-based microservices architecture using Spring Boot, Eureka, and ...
1
vote
0answers
224 views

Compatible version Ribbon load balancer for spring cloud 2.1.3.RELEASE

I use spring cloud of 2.1.3.RELEASE version, my project was generated with https://start.spring.io/ then I'm trying to run app I got Error starting ApplicationContext. To display the conditions ...
0
votes
1answer
227 views

Can Spring Cloud Loadbalancer be used together with Netflix Eureka instead of Netflix Ribbon?

From the announcement of the Spring Cloud Greenwich release, see https://spring.io/blog/2019/01/23/spring-cloud-greenwich-release-is-now-available, I noticed that is recommended to replace Netflix ...
0
votes
0answers
58 views

Is it possible to share the same Hystrix thread pool for different calls to the same remote resource?

I want to use Hystrix to implement the bulkhead pattern in the licensing service, creating segregated thread pools for two categories of remote resource calls. In the first category, I want to group ...