是否有任何机构使用 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
这里可能是什么问题?