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
36 views

[SpringCloudGateway]: Netty HttpClient failed to connect with SSLHandshakeException after establishing HTTPS connection with endpoint

We have built API Gateway application using Spring Cloud Gateway 4.0 (on webflux) framework and Azul Zulu OpendJDK 17. The application is able to intercept incoming request and redirect it to the ...
Deepak Chhetri's user avatar
0 votes
0 answers
45 views

Spring Cloud Gateway gives error while reading response from GRPC requests "ResponseFacade cannot be cast to class HttpServerResponse"

I have configured the api gateway with grpc. The requests route correctly to the grpc url, however gateway is unable to read the response and it fails with below error. "ResponseFacade cannot be ...
ShivaniK'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
23 views

While using Spring Cloud Gateway and configuring the circuit breaker, the server crashes

resilience4j: circuitbreaker: configs: default: sliding_window_size: 100 slow-call-duration-threshold: 9500 permitted_number_of_calls_in_half_open_state: 10 ...
ethan yang's user avatar
0 votes
1 answer
117 views

Simple discovery client in Spring Cloud Gateway MVC

Availability of virtual threads made me want to switch from reactive Spring Cloud Gateway to it's MVC version. Migration of most of the code was easy (changing some classes and method names, moving ...
Krzysztof's user avatar
-1 votes
1 answer
57 views

How to get inputStream as return value from ServerHttpRequest in spring reactive?

I am writing a Spring Reactive implementation for a third-party SPI which is based on a traditional servlet. One method requires InputStream from request as return value: /** * Returns the request ...
Michael's user avatar
  • 410
0 votes
1 answer
84 views

Spring websocket connection closed by spring cloud gateway after 30 seconds

My application is a microservice application. I am using spring web sockets to send notifications to the front end. In my application, I have a gateway service to route the HTTP requests to the ...
Devmina's user avatar
  • 45
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
22 views

How to communicate with a server with an invalid certificate

I have a Spring Cloud based service. It has in its application.yml the option spring: security: oauth2: client: provider: blitz-provider: ...
ka3ak's user avatar
  • 2,721
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
0 votes
1 answer
132 views

React Native OAuth2 Backend for Frontend With Spring Cloud Gateway BFF

Hello I am using learning about OAuth. I have a react native app, and I want to connect it to my Java Spring backend, with OAuth. I used this tutorial to add OAuth to my Java backend: https://www....
Kado's user avatar
  • 13
0 votes
0 answers
21 views

What is the right way of doing custom Authentication in spring WebFlux. In my configuration i have redirect after Authentication problem

I try to implement custom Authentication digital signature based in Spring Cloud Gateway. At this moment i just return true for signature validation. public class AdsAuthenticationFilter implements ...
Vladimir Surkov's user avatar
0 votes
0 answers
15 views

Cannot disable CORS in Spring Cloud Gateway

IN the frontend React Web App. import { useState } from "react" export default function PrestadoresServico() { const [prestadoresServicos, setPrestadoresServicos] = useState([]) ...
Diego Alves's user avatar
  • 2,607
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
116 views

Unable to integrate grpc with spring cloud gateway

I am trying to integrate grpc with the spring cloud gateway. I want to hit a grpc gateway URL with a proto file and redirect it to the grpc service. My gateway config looks like below ... .. .. server:...
ShivaniK's user avatar

15 30 50 per page
1 2
3
4 5
86