We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 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);
apisix version
uname -a
openresty -V
nginx -V
curl http://127.0.0.1:9090/v1/server_info
luarocks --version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 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());
});
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: