-
Notifications
You must be signed in to change notification settings - Fork 50
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
Cannot create DAX client with session - InvalidParameter: custom handlers not supported #17
Comments
We indeed do not support custom handlers, but probably a warning will be sufficient, otherwise you'll have to provide/modify a separate session for the Dax client. Are you providing custom handlers? |
Nope. I'm just using my session object created with AWS sdk. I'm worried that |
The error reported by @edulopezTriv can be reproduced simply with:
Looks like a default Session created with aws-sdk-go already contains handlers that are considered custom by the dax sdk. Env
|
After looking into it somewhat more, I think we're going to deprecate this constructor all together. The reason we have validations is because DAX doesn't use custom configurations and handlers and we want to make sure a customer is aware of this. Essentially the only fields we're using from the session objects are some of the configurations: Lines 86 to 107 in 19b34c5
Which essentially means you'll have to modify your existing session anyway, to get it working with DAX, at which point you might as well create a new DAX configuration. What's your use case when you use an existing session? How do you set the dax endpoint? |
The thing is I may use that session to any other thing in my project. I rather have a |
The problem is it wont' work, because you will still have to modify the session's |
I don't think that's the issue. I think the expectation is that the following code, that is familiar across AWS SDKs, works:
|
This was fixed in v1.2.0. Creation of DAX client from a Session will not throw out an error as long as all required configurations is provided in the Session. |
Thanks for the reply. Were you able to create sessions with SDK1?
Regards
Hiranmayi.
…On Thu, Feb 8, 2024 at 11:42 PM Maria Ines Parnisari < ***@***.***> wrote:
@hmayi <https://github.com/hmayi> there is an open PR from the community:
#43 <#43>
But it hasn't received any attention from the maintainers of DAX.
|
I'm trying to create a DAX client with
dax.NewWithSession
using the same session I use for creating a dynamo client. I can confirm it works with dynamo.Sample
this is the error I have when calling
dax.NewWithSession
If you read the code from
aws-dax-go
that error comes fromclient.ValidateHandlers
What should we do to create a new DAX client using our
aws session
?Env
The text was updated successfully, but these errors were encountered: