Nodejs Sdk - How to resolve connect.describeContact is not a function?
0
I am trying to make a call to describeContact
operation using the AWSJavaScriptSDK
. I am following the documentation but somehow the call is not working. Below is my code.
const params = {
ContactId: 'some_value',
InstanceId: 'some_value'
};
const attributes = await connect.describeContact(params).promise();
I receive -
connect.describeContact is not a function
Interestingly, when I replace describeContact
with getContactAttributes
in the call, I no longer receive "not a function" error and it works just fine (after I change the params). Both the operations have exactly the same signature.
Can someone please guide me here ?
Connect api version = 2017-08-08
Upgrading to the latest version of aws-sdk didn't help either.
asked a month ago15 views
1 Answers
0
Hi,
there error can indicate two things:
- There is a invisible character since it errors with connect.describe and not connect.describeContact
- Most likely - You need to update your aws-sdk dependency. describeContact() is a preview one and may not included in the SDK version you currently use.
Best
answered a month ago
Relevant questions
Nodejs Sdk - How to resolve connect.describeContact is not a function?
asked a month agoHow can I get the Image ID after importing a disk image?
asked 10 months agoCopying a Cross-Source DataSet in QuickSight using the JS SDK
asked 7 days agoWhen I try to update doc ver I get a code 404
asked 3 years agoTypeError: ecs.tagResource is not a function
asked 3 years agoAccess denied when trying to GET objects uploaded to s3 bucket via aws sdk using cloudfront
asked 7 months agoLambda function is not getting invoked if I call it inside a cronjob method or in a scheduler
asked 3 months agoUsing the encryption sdk within lambda
Accepted Answerasked 2 years agoI am trying to write an ETL job to the Data Catalog but its writing the Headers as Data
Accepted Answerasked 3 months agoHow to call the Values function in aws-sdk-go-v2?
asked 7 months ago
Sorry for not posting the exact error. It says - connect.describeContact is not a function. And I already tried updating the sdk to latest avaialble version. I still get the same error for this particular function.