KoteiIto / node-athena

a nodejs simple aws athena client
MIT License
105 stars 73 forks source link

Unexpected key 'WorkGroup' found in params #50

Closed zivkaziv closed 5 years ago

zivkaziv commented 5 years ago

I'm trying to run the example:

var clientConfig = {
    bucketUri: 's3://xxxx'
}

var awsConfig = {
    region: 'xxxx', 
}

var athena = require("athena-client")
var client = athena.createClient(clientConfig, awsConfig)

client.execute('SELECT 1').toPromise()
.then(function(data) {
    console.log(data)
})
.catch(function(err) {
    console.error(err)
})

But I'm getting the following error:

Unexpected key 'WorkGroup' found in params

Any idea why?

zivkaziv commented 5 years ago

The issue was related to old aws-sdk. Make sure you are using upgraded one

KoteiIto commented 5 years ago

Thank you for reporting.I fixed this bug on #52 Please use v2.5.1.