是否有任何主体使用plaid-java库通过代理连接到PLAID api?
我在代理后面,我可以通过修改ApacheHttpClientHttpDelegate类连接到格子沙箱URL(例如:https://tartan.plaid.com/categories)。
public <T> HttpResponseWrapper<T> doPost(PlaidHttpRequest request,
Class<T> clazz) {
...
HttpPost post = new HttpPost(baseUri + request.getPath());
HttpHost proxy = new HttpHost(proxyUrl);
RequestConfig reqConfig = RequestConfig.custom().setProxy(proxy).build();
post.setConfig(reqConfig);
response = httpClient.execute(post);
...
}
但是当我运行单元测试时,我的错误时间会低于错误。
com.plaid.client.exception.PlaidCommunicationsException: org.apache.http.conn.HttpHostConnectException: Connect to webproxy.xx.xxx.net [webproxy.xx.xxx.net/1xx.xx.xxx.xx] failed: Connection refused: connect
这可能是什么问题?