Skip to main content

All Questions

0 votes
0 answers
33 views

How to call REST API using Spring Webclient in global post filter

Spring Cloud Gateway with WebFlux: 4.1.0 We have implemented couple of custom Global pre and post filters in our Spring Cloud Gateway application. We are using Spring WebClient utility to make call to ...
Deepak Chhetri's user avatar
0 votes
0 answers
38 views

Spring cloud gateway : Returns 200 to an api call but no response in body

When I hit URL through postman, [localhost:8090/api/v1] I get 200 but no response in body and when I check the logs of the service which was hit through gateway it shows nothing, which means it didn't ...
Aditya Priyam iGTB's user avatar
0 votes
0 answers
35 views

Spring Gateway routes not applied to multiple SecurityWebFilterChains

---> .csrf((c) -> {c.disable();}) for the /api/** security filter chain caused the following to happen for an unknown reason: The issue is not having the gateway route filters and resources ...
MrSnafu's user avatar
0 votes
0 answers
37 views

spring cloud webflux with http2

I have a spring cloud webflux application, I want my application to work on the http2 protocol. I create a certificate and keys through Keystore explorer, add them to the configuration of my gateway ...
Арчи's user avatar
0 votes
0 answers
58 views

Gateway service does not get informed about an updated service port

I have a cluster of Spring Cloud services; Eureka Server Gateway Client Service (port:0 so a random port is assigned on each startup) When I start all the applications up, everything looks good. ...
Eric's user avatar
  • 449
0 votes
0 answers
69 views

Spring Cloud Gateway Custom Filter Handle Error Response

I have a customer filter in my spring cloud gateway and I am making a request with WebClient to validate authentication. If the response is 200 I want to continue with the execution/chain and if they ...
iqueqiorio's user avatar
  • 1,179
0 votes
0 answers
65 views

How to strip predicate path prefix from all the configured route configurations?

Our team is migrating the API Gateway application from Netflix Zuul 1.x framework to Spring Cloud Gateway (SCG) 4.0 framework. There are more than 30 routes configured in the SCG application in the ...
Deepak Chhetri's user avatar
1 vote
1 answer
134 views

Converting ServerHttpRequest to HttpServletRequest

I'm migrating an application from Netflix/Zuul to Spring Cloud Gateway: public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { ServletServerHttpRequest ...
cybertextron's user avatar
  • 10.9k
0 votes
0 answers
86 views

Add dynamic value in the header

i use spring cloud gateway mvc. We can add header value with addRequestHeader @Bean public RouterFunction<ServerResponse> bookServiceRoute() { return route("bookRoute") ...
robert trudel's user avatar
0 votes
0 answers
36 views

Spring cloud gateway rewritePath and display route

I use spring boot and spring cloud gateway mvc Server 1 locahost:8082 it's context path is /crm Server 2 localhsot:8001 it's context path is /acme/crm When a call is do server 1 like locahost:8082/crm/...
robert trudel's user avatar
0 votes
0 answers
41 views

spring cloud services successfully registered by fail to call from register-center

I'm studying developing micro-services with spring cloud, but I'm stuck with a confusing question. Gist: the service can be registered in consul/zookeeper/eureka, but they can only call each other by ...
keyboard man's user avatar
0 votes
1 answer
90 views

Cannot connect to remote Kubernetes service - SERVICE_UNAVAILABLE

I'm trying to make the following test setup: Spring cloud gateway to forward messages internally to internal microservice. I tried this gateway project: https://github.com/rcbandit111/gateway Internal ...
Peter Penzov's user avatar
  • 1,048
-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
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
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

15 30 50 per page
1
2 3 4 5
25