BoxDeveloperEditionAPIConnection apiConnection = new BoxDeveloperEditionAPIConnection(ENTERPRISE_ID, DeveloperEditionEntityType.ENTERPRISE, boxConfig,
accessTokenCache);
InetSocketAddress address = new InetSocketAddress(proxyServerHostname, proxyServerPort);
Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
apiConnection.setProxy(proxy);
apiConnection.authenticate();
At my local machine, if I do not setProxy, it works. But in the server, I need to use proxy due to the setup. However if I use the setProxy. It gives me the following error at my local machine and server. What I missed?
Couldn't connect to the Box API due to a network error.
I am using box-java-sdk
2.46.0