You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that the registry client doesn't support a connection behind a proxy.
If your Tomcat is configured to work behind a proxy server you could change the DefaultCatalogueFetcher.java by adding:
/**
* The proxy server, if it is not null
*/
Proxy proxy = null;
/**
* Allows to set a proxy for HttpxURLConnection
*
* @param proxyType The type of proxy (DIRECT/HTTP/SOCKS)
* @param proxyIpAddress The address of the proxy
* @param proxyPort The port of the proxy
*/
public void setProxy(Proxy.Type proxyType, String proxyIpAddress, Integer proxyPort)
{
proxy = new Proxy(proxyType, new InetSocketAddress(proxyIpAddress, proxyPort));
}
and then modify the connection in fetchCatalogue to use the proxy only if it has been previously created invoking setProxy.
You have to change the last line in
@Override
public RegistryResponse fetchCatalogue(String previousETag) throws IOException {
URL url = new URL("https://" + this.registryDomain + "/catalogue-v1.xml");
logger.debug("Opening HTTPS connection to {}", url);
HttpsURLConnection conn = url.openConnection();
It seems to me that the registry client doesn't support a connection behind a proxy.
If your Tomcat is configured to work behind a proxy server you could change the DefaultCatalogueFetcher.java by adding:
and then modify the connection in fetchCatalogue to use the proxy only if it has been previously created invoking setProxy.
You have to change the last line in
to these three lines
The text was updated successfully, but these errors were encountered: