wangjia5693 opened a new issue, #11377:
URL: https://github.com/apache/apisix/issues/11377
### Description
question:
use webflux WebClient build proxy request to apisix-controller ingress
,return 400
LOG:
"CONNECT apisix.ingress.com:80 HTTP/1.1" 400 229 0.031 "-" "-" - - - "://"
CODE:
HttpClient httpClient = HttpClient.create().proxy(proxy ->
proxy.type(ProxyProvider.Proxy.HTTP).address(new
InetSocketAddress("10.0.0.110", 31278)));
ReactorClientHttpConnector connector = new
ReactorClientHttpConnector(httpClient);
WebClient build = WebClient.builder()
.clientConnector(connector).build();
Mono<String> mono = build
.post()
.uri("http://apisix.ingress.com")
.contentType(MediaType.APPLICATION_JSON)
.bodyValue("ttt")
.retrieve()
.bodyToMono(String.class)
.doOnError(Exception.class, err -> {
log.error("发生错误={}" ,err.getMessage());
});
mono.subscribe(ConsumerWrapper.of(result -> {}));
ThreadUtil.safeSleep(3000);
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]