Giter Club home page Giter Club logo

Comments (4)

faheyn avatar faheyn commented on May 29, 2024

Added the following to RegionUtils.java

import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.conn.params.ConnRoutePNames;

And in the fetchFile I added
String myproxyserver = System.getProperty("http.proxyHost");
String myproxyport = System.getProperty("http.proxyPort");
System.out.println("My Proxy Config =" + myproxyserver + ":" + myproxyport);
HttpHost proxy = new HttpHost(myproxyserver, Integer.parseInt(myproxyport), "http");
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

When running set the properties with either -D params to the runtime JVM or set in your code with
System.setProperty("http.proxyHost", "myproy.internal.com");
System.setProperty("http.proxyPort", "8080");

from aws-sdk-java.

mcbain avatar mcbain commented on May 29, 2024

+1

from aws-sdk-java.

cpswaim avatar cpswaim commented on May 29, 2024

Ran into this issue. The patch above fixes it.

Here's a gist in patch format if anyone else needs it:
https://gist.github.com/cpswaim/8562609#file-fetchfileproxy-patch

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on May 29, 2024

Hi, this was fixed with 1.7.0. The RegionUtils.java no longer reads from a remote location by default. If you wish to read the endpoints from a difference location, you can now pass in a ClientConfiguration, which allows the use of proxies.

from aws-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.