aliyun / aliyun-tablestore-nodejs-sdk

Aliyun TableStore(原OTS) SDK for Node.js
Apache License 2.0
88 stars 33 forks source link

Get Row Always Empty #38

Closed sukianto closed 4 years ago

sukianto commented 4 years ago

I have a problem for GetRow I have these params: const params = { tableName: 'table_name', primaryKey: [ { 'gid': 'something' }, { 'uid': 'something' } ], maxVersions: 1, columnsToGet: ['username', 'address'] } gid is the partition key uid is the primary key

const queryResult = await client.getRow(params).then(data => { return data }).catch(err => { throw err })

I do this in function compute environment I'm sure my syntax is correct, but the returned row is always empty

{ "consumed": { "capacityUnit": { "read": 1, "write": 0 } }, "row": "" }

Do I need to open permission for the related access and secret key? I already open OTS full access

grapewheel commented 1 year ago

@sukianto I also get the same problem, how did you solve it??