play-siena icon indicating copy to clipboard operation
play-siena copied to clipboard

How to work with Amazon SDB behind proxy?

Open jackysee opened this issue 12 years ago • 1 comments

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?

jackysee avatar May 02 '12 09:05 jackysee

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: https://github.com/mandubian/play-siena/issues/14

mandubian avatar May 02 '12 10:05 mandubian