FactbirdHQ / amazon-dax-client

Amazon DAX Client for JavaScript
Apache License 2.0
0 stars 2 forks source link

AmazonDaxClient.resource fails with config #2

Closed jdies closed 4 years ago

jdies commented 4 years ago

Hi,

this works:

from amazondax import AmazonDaxClient

AmazonDaxClient.resource( 
            region_name='us-east-1',
            endpoints=[DAX_ENDPOINT_URL]
)

All of this doesn't:

from amazondax import AmazonDaxClient
from botocore.config import Config

config = Config(connect_timeout=5)
AmazonDaxClient.resource( 
            config=config,
            endpoints=[DAX_ENDPOINT_URL],
            region_name='us-east-1'
)

config = Config(connect_timeout=5, region_name='us-east-1')
AmazonDaxClient.resource( 
            config=config,
            endpoints=[DAX_ENDPOINT_URL],
)

The error is:

An error occurred (NoRouteException) when calling the operation: Failed to configure cluster endpoints from [('mycluster.dax.use1.cache.amazonaws.com', 8111)]

Did I get wrong how to use the config?

Thank you and have a nice day!

jdies commented 4 years ago

Omg I'm very sorry, this shouldn't have gone to your repo.

martinjlowm commented 4 years ago

Hehe, no worries ;)