spring-cloud-gateway Questions

2

Spring Cloud Greenwich puts spring-cloud-netflix-zuul in maintenance mode, so I am trying to migrate from Zuul to Spring Cloud Gateway. With Zuul I have a route like zuul: routes: masterplan_ma...
Loosejointed asked 25/1, 2019 at 7:55

1

I have an endpoint (/logout) that invalidate the session manually by calling HttpSession#invalidate(). Sometimes i got the following exception (Within 1000 request it happens about a dozen times): ...

4

Solved

Followed the spring guides to build the eureka server, spring cloud gateway and a sample rest service. However, the gateway is unable to retrieve the urls using the service name from the eureka se...
Haemophiliac asked 6/9, 2018 at 5:12

11

Solved

I have Spring Cloud gateway running on separate server with the following configuration: spring: cloud: gateway: globalcors: cors-configurations: '[/*]': (I also tried '[/**]':) allowedOrigin...
Foreandaft asked 3/1, 2022 at 3:58

3

Solved

My gateway will redirect traffic to many different services (under different domain names). how can i test the gateway's configuration? with only one service i can just setup the mock server (like ...
Harumscarum asked 20/1, 2020 at 14:51

10

Api calls via gateway throws java.net.UnknownHostException even though I am able to hit the application directly with the given hostname Spring Boot version : 2.4.2 Spring-cloud.version: 2020.0.1 J...
Conradconrade asked 10/2, 2021 at 9:13

1

I am working on a microservice architecture developed in Spring boot with an API gateway service using Spring Cloud Gateway. I am using Keycloak as an identity provider. Everything is working fine ...

2

Solved

In Spring cloud Gateway request timeout for path in not working as expected. I tried to specify global timeout, but its not working as expected. I am trying to call a microservice A. In A microserv...
Radiometer asked 20/11, 2020 at 18:46

18

Solved

I have designed a micro service prototype using below technologies Eureka Server a service Spring Cloud API Gateway Above mentioned service are registered in the Eureka Server API Gateway routin...
Increasing asked 17/12, 2020 at 1:48

7

I have this simple microservices application with Spring Boot and I try to add the Spring Cloud Gateway service, but it doesn't work. All microservices, including the Eureka server, work well, but ...
Musset asked 4/8, 2021 at 20:14

5

Solved

I was working with Spring cloud gateway when i use routes statique like this (It works fine) : @Bean RouteLocator routeLocator(RouteLocatorBuilder builder) { return builder.routes() .route((r) -&...
Frump asked 21/12, 2020 at 23:53

4

Solved

In the GatewayFilter, I am trying to inject a header into the request like below. @Override public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { //DO SOME AUTH...
Subtract asked 15/4, 2018 at 18:21

4

Solved

I want to display traceId in logs for each request in Spring Cloud Gateway. However, traceId and spanId are just empty. Log config is like below: logging: pattern: level: "%5p [TRACE_ID: %X{t...
Canzona asked 24/1, 2023 at 13:0

1

I'm using Spring Cloud Gateway with a routing configuration like this: spring: cloud: gateway: routes: - id: http uri: http://kubernetes-ingres-controller In other words, I'm sending all path...
Fromenty asked 30/10, 2023 at 17:15

3

Solved

We are implementing routes programmatically using a implementation of RouteDefinitionLocator. We have two services which should register at the same route path, where one of them is meant as a fall...

1

We are re-building our software platform using a microservice architecture approach. Most of it using Spring Boot libraries, and for our entry points we are using Spring Cloud Gateway which can be...
Systemic asked 28/8, 2019 at 14:22

3

Solved

I want to create a new project with Spring Cloud Gateway but I don't want all the reactive functionality. for me, it will be fine if the other microservice will be blocking I/O and not Reactive. h...
Johnsonian asked 21/1, 2021 at 8:52

4

Solved

I have a simple microservices project with an api-gateway, a product service and keycloak as authentication server. I beleive that i made the configuration correctly because on the browser i get th...

5

I am using spring boot version - 2.0.6.RELEASE and spring cloud version - Finchley.SR2 and i have created my custom gateway filter to modify the request body. but while converting the request bod...
Sidras asked 19/8, 2019 at 19:30

4

Solved

I got this below error when run the API-GATEWAY, I tried so many ways but I couldn't solve this issue. Description: Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway. A...
Parapodium asked 30/7, 2021 at 8:31

2

We are using Spring Cloud Gateway with Spring Boot 2 and reactive WebFlux module. There is an authentication filter which is added for one of the routes. Now if we throw a RuntimeException with a p...
Skunk asked 23/5, 2018 at 5:39

5

I have application.yaml in springboot app as below spring: cloud: gateway: routes: - id: pgService uri: http://localhost:2005/ predicates: - Path=/employee/** - id: inMateService uri: http...

2

I'm using spring cloud gateway filter, and want to filter request by GatewayFilterFactory, but order not working with @Order annotation I tried to swap the order of filters, but not working. @S...
Micron asked 21/5, 2019 at 6:46

4

I am encountering a very peculiar problem in spring cloud gateway. Every alternate request returns a 404. This happens across all services I've configured in the api-gateway without exception. I do...
Randarandal asked 25/5, 2020 at 18:47

2

Solved

We're using Spring Cloud Gateway in front of our backend services. We have a route similar to the following: routes: - id: foobar-service uri: lb://foobar-service predicates: - Path=/foobar/*...
Inosculate asked 5/3, 2019 at 12:37

© 2022 - 2024 — McMap. All rights reserved.