darkSheep404 commented on issue #9922: URL: https://github.com/apache/apisix/issues/9922#issuecomment-1655139506
> > hi @Sn0rt can you take a look at this when you are free,many thank~ > > NP. I am take a look now. > > This text looks very difficult to understand. Can you draw a picture? I can't understand this code at all. I can only guess. hi @Sn0rt emmm, it maybe a forward proxy issue?  ```java public WebClient proxyWebClient( ReactorClientHttpConnector connector, RncProperties rncProperties, WebClient.Builder webClientBuilder) { HttpClient httpClient = HttpClient.create(myproxyProvider()) .proxy(proxy -> proxy.type(ProxyProvider.Proxy.HTTP) .host(myProxyProperties.getProxyHost()) .port(Integer.parseInt(myProxyProperties.getProxyPort()))); connector = new ReactorClientHttpConnector(httpClient); return webClientBuilder .clientConnector(connector) .baseUrl(rncProperties.getBaseUrl()) .build(); } ``` > use ``` return proxyWebClient .post() .uri("/xxx") .bodyValue(userTrade) .retrieve() .bodyToMono(List.class) .block(); ``` -- 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]
