通过代理连接到PLAID

时间:2016-10-17 18:44:44

标签: java proxy plaid

是否有任何主体使用plaid-java库通过代理连接到PLAID api?

Link for plaid-java-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

这可能是什么问题?

0 个答案:

没有答案