Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work with Amazon SDB behind proxy? #14

Open
jackysee opened this issue May 2, 2012 · 1 comment
Open

How to work with Amazon SDB behind proxy? #14

jackysee opened this issue May 2, 2012 · 1 comment

Comments

@jackysee
Copy link

jackysee commented May 2, 2012

I got 'unable to execute HTTP request' exception when trying to use the Model fetch

play.exceptions.JavaExecutionException: Unable to execute HTTP request: Connection to https://sdb.amazonaws.com refused
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:231)
        at Invocation.HTTP Request(Play!)
Caused by: com.amazonaws.AmazonClientException: Unable to execute HTTP request: Connection to https://sdb.amazonaws.com refused

        at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:272)
        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:166)
        at com.amazonaws.services.simpledb.AmazonSimpleDBClient.invoke(AmazonSimpleDBClient.java:739)
        at com.amazonaws.services.simpledb.AmazonSimpleDBClient.listDomains(AmazonSimpleDBClient.java:482)
        at com.amazonaws.services.simpledb.AmazonSimpleDBClient.listDomains(AmazonSimpleDBClient.java:686)
        at siena.sdb.SdbPersistenceManager.checkDomain(SdbPersistenceManager.java:85)
        at siena.sdb.SdbPersistenceManager.doFetchList(SdbPersistenceManager.java:725)
        at siena.sdb.SdbPersistenceManager.fetch(SdbPersistenceManager.java:486)
        at siena.BaseQuery.fetch(BaseQuery.java:115)

Is there a way to config the aws client to use proxy?

@mandubian
Copy link
Owner

Hi,

Welcome, you're the first one that I know who's testing Siena with SDB
besides me when I developed it :)...
If you discover a few bugs, this is normal, this implementation is not as
mature as others and has not been tested in prod yet... Anyway it should
work in most basic cases.

For info, I don't have time to develop Siena anymore (working on other
projects) so I just give support when I can do it. So don't hesitate to
contribute to Siena, it's an open project ;)

To connect to SDB, Siena uses the following code so no proxy info there...
sdb = new AmazonSimpleDBClient(new
BasicAWSCredentials(awsAccessKeyId, awsSecretAccessKey));

If you need to take a proxy into account, I think this is where the code
should be modified.
If you know how to add proxy conf, don't hesitate to contribute it.

regards
Pascal

On Wed, May 2, 2012 at 11:26 AM, JackySee <
[email protected]

wrote:

I got 'unable to execute HTTP request' exception when trying to use the
Model fetch

play.exceptions.JavaExecutionException: Unable to execute HTTP request:
Connection to https://sdb.amazonaws.com refused
       at play.mvc.ActionInvoker.invoke(ActionInvoker.java:231)
       at Invocation.HTTP Request(Play!)
Caused by: com.amazonaws.AmazonClientException: Unable to execute HTTP
request: Connection to https://sdb.amazonaws.com refused

       at
com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:272)
       at
com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:166)
       at
com.amazonaws.services.simpledb.AmazonSimpleDBClient.invoke(AmazonSimpleDBClient.java:739)
       at
com.amazonaws.services.simpledb.AmazonSimpleDBClient.listDomains(AmazonSimpleDBClient.java:482)
       at
com.amazonaws.services.simpledb.AmazonSimpleDBClient.listDomains(AmazonSimpleDBClient.java:686)
       at
siena.sdb.SdbPersistenceManager.checkDomain(SdbPersistenceManager.java:85)
       at
siena.sdb.SdbPersistenceManager.doFetchList(SdbPersistenceManager.java:725)
       at
siena.sdb.SdbPersistenceManager.fetch(SdbPersistenceManager.java:486)
       at siena.BaseQuery.fetch(BaseQuery.java:115)

Is there a way to config the aws client to use proxy?


Reply to this email directly or view it on GitHub:
#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants