chengtangzheng2021

Results 10 comments of chengtangzheng2021

Chat GPT gave this code, but there is no getBody(). Chat GPT keeping giving code using getBody() exchange.getResponse().getBody() .map(dataBuffer -> { byte[] bytes = new byte[dataBuffer.readableByteCount()]; dataBuffer.read(bytes); // Assuming UTF-8...

the ServerHttpResponseDecorator is loging response body for every request processing, our need is to log the response body just in exception case

our exception logging standard has some required logging fields besides the logging response body in a same json logging message logged in the exception handler

my gateway doing routing for many services, all service's swagger can get through gateway endpoint, the swagger can also get through service direct access endpoint

> > my gateway doing routing for many services, all service's swagger can get through gateway endpoint, the swagger can also get through service direct access endpoint, > do you...

is this apply to gateway? The Request Body Size Limit policy, which by default is set to 1 MB, is applied to all API gateway proxy requests. If the request...

this stacktrace is saying that the connection between gateway client and gateway is closed?

@Bean public RouteLocator myRoutes(RouteLocatorBuilder builder) { return builder.routes() .route("facadeCheckBodyV3", r -> r.method("POST").and() .path("/api/v3/facades/itp-v3-emulator/dell/dependantpricingcatalog/**") .or().path("/api/v4/facades/itp-v3-emulator/dell/dependantpricingcatalog/**").and() .readBody(String.class, requestBody -> true) .filters(f -> f.filter(facadeFilter)).uri("no://op")) r -> r.path("/v3/api-docs").or().path("/v3/api-docs/swagger-config") .filters(f -> f.filter(swaggerFilter)).uri("no://op")) .route("check-query", r ->...

@RestController public class ForwardedToController { private static final Logger logger = LoggerFactory.getLogger(ForwardedToController.class) @GetMapping("/health") public ResponseEntity health() { return ResponseEntity.ok("{\"status\": \"OK\"}"); } } local rest handler

got it working, some dependencies versions issue