aws / aws-sigv4-auth-cassandra-nodejs-driver-plugin

A SigV4 authentication client side plugin for the open-source DataStax NodeJS Driver for Apache Cassandra. Allows use of IAM users and roles.
Apache License 2.0
5 stars 16 forks source link

options.authProvider must be an instance of AuthProvider #6

Open prad9 opened 2 years ago

prad9 commented 2 years ago

Trying to connect to Keyspaces in region ap-southeast-2 using sigv4 node driver plugin but for some reason during the client initialization it throws error saying "options.authProvider must be an instance of AuthProvider"

npm: 6.14.11 node: 14.15.5 typscript: 4.4.3

Code sample looks like this: image

bhouse99 commented 2 years ago

We are investigating the issue. Thanks for bringing this to our attention.

SBD580 commented 2 years ago

We are investigating the issue. Thanks for bringing this to our attention.

Any update?

bhoudu commented 1 year ago

Any update?

bhoudu commented 1 year ago

For those who wonders how to fix it, you can set explicit version of cassandra-driver for transitive dependencies in nodejs with "resolutions" then check you have just 1 unique version used in your project (check package-lock or yarn.lock). It should solve the problem.

Still it would be great to upgrade to latest cassandra-driver version as 4.6.3 does not work with 4.6.4.