Skip to main content

Questions tagged [spring-cloud-gateway]

Spring Cloud Gateway is an API Gateway library on top of the Spring reactive ecosystem. Use this tag when encountering issues with Spring Cloud Gateway components.

spring-cloud-gateway
0 votes
0 answers
101 views

Scheduler worker in group main failed with an uncaught exception

Scheduler worker in group main failed with an uncaught exception reactor.core.Exceptions$ErrorCallbackNotImplemented: java.util.ConcurrentModificationException 在使用spring-cloud-...
user24392020's user avatar
0 votes
0 answers
60 views

Ignore authorization for a particular URL in Spring Cloud API Gateway

I have an API Gateway that routes to an Netflix Eureka Discover Server in Spring. I have configured an authorization for the API Gateway but wanted to ignore this API Gateway authorization only for ...
Harshak Krishnaa's user avatar
1 vote
0 answers
93 views

ClosedChannelException when forwarding request with Gateway MVC

I want to: Send a POST request to a Gateway MVC server Make the gateway forward the request to a mocked endpoint (everything is happening on the same host) However, I get a ClosedChannelException ...
Powet's user avatar
  • 157
-2 votes
1 answer
294 views

Spring Cloud Gateway with Spring Security for Register / Login using JWT Authententication. 403 Forbidden Error

I'm learning SpringBoot for a microservice application project. I'm using Keycloak Client Authentication Route with Service Accounts Role and I've added the keycloak Configuration to the API Gateway ...
Aniket Angwalkar's user avatar
0 votes
1 answer
203 views

Spring Cloud Gateway with OIDC/Oauth2 refresh tokens and max-reuse=0

I'm trying to configure an Api Gateway using Spring Cloud Gateway and the authorization code flow. The authorization server is configured to allow refresh-tokens for renewal of access-tokens, but we ...
Johan Kindgren's user avatar
0 votes
0 answers
20 views

In spring cloud gateway, is it possible to make a filter that redirects to a route based on data read from the json request body?

In spring cloud gateway, i have these two routes configured in the yaml file: spring: cloud: gateway: routes: - id: springcloud uri: http://localhost:8081/ ...
R.S.'s user avatar
  • 377
0 votes
1 answer
331 views

Rate Limiter with SpringCloudGateway and Redis, getting 429 too many requests all the time

I'm trying to limit only the POST methods for an specific endpoint, and "it's working" but don't matter how much time I wait or if is my first request, I get the 429 error message. I tried ...
Raphael Torres's user avatar
0 votes
0 answers
30 views

[SpringCloudGateway-WebFlux]: How to return custom error response for Gateway timing out lingering downstream endpoint?

We have implemented our Gateway application using Spring Cloud Gateway 4.1.0 framework and it is able to intercept the incoming request and redirect to configured downstream endpoint. We have ...
Deepak Chhetri's user avatar
0 votes
0 answers
57 views

How to Load Balancing External API Calls in spring gateway

Is it possible to distribute the load of external API calls in spring gateway? I have third-party APIs located in different regions. My goal is to evenly distribute calls to these APIs across regions ...
user24162178's user avatar
0 votes
0 answers
27 views

PreserveHostHeader with WebTestClient fails

When setting PreserveHostHeader filter in spring.cloud.gateway.default-filters, WebTestClient ends up with a 500 error instead of 503 wanted. // @AutoConfigureWebTestClient(timeout = "PT100S"...
PutSomeCodeHere's user avatar
0 votes
1 answer
430 views

How to implement Spring Cloud Gateway Rate Limiting, For the same API/URL with different Rate Limiting values for different users?

I have some microservices with Spring Cloud, Now I have to implement ratel-limit for the API on the cloud gateway based on the user name. With the help of KeyResolver, I extract the user from the ...
Imranmadbar's user avatar
  • 5,244
2 votes
3 answers
214 views

Spring Cloud Gateway MVC exception handling

I'm writing a API Gateway app built using Spring Cloud Gateway MVC. I'm using a custom CircuitBreaker filter that can timeout when backend requests take too long. I'm seeing that when the request ...
user3197674's user avatar
0 votes
1 answer
68 views

Cannot resolve method 'doOnSuccessOrError' in 'Mono'

I have this Spring Gateway code which I want to migrate to latest Spring Cloud 3: @Component public class CorrelationIdApiFilter implements WebFilter { @Override public Mono<Void> filter(...
Peter Penzov's user avatar
  • 1,048
0 votes
0 answers
143 views

How to propagate MDC in spring cloud gateway

I am using Spring Cloud gateway and in my logback file I am using MDC like to log username to every log line. <property name="LOG_PATTERN" value="%d [TRACE_ID: %X{traceId}] ...
Murad Zulfugarov's user avatar
1 vote
0 answers
48 views

I can't configure Spring Cloud Gateway to validate some routes with OAuth2 and allow others to redirect without validation

I want to configure so that the route /api/v1/auth/** validates authentication with the token I send from a front with Angular. At the same time, I want requests to /api/v1/user/** not to require ...
user23981540's user avatar

15 30 50 per page
1
3 4
5
6 7
86