I am following this https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics-gen-bi-authenticated-users.html to generate Q topic embed URL in node js but i am getting below mentioned error with versions mentioned below:
{
“name”: “getquicksightdashboardembedurl1233”,
“version”: “1.0.0”,
“description”: “Lambda function generated by Amplify”,
“main”: “index.js”,
“license”: “Apache-2.0”,
“dependencies”: {
“amazon-cognito-identity-js”: “^6.2.0”,
“aws-serverless-express”: “^3.3.5”,
“body-parser”: “^1.17.1”,
“express”: “^4.15.2”
},
“devDependencies”: {
“@types/aws-lambda”: “^8.10.92”
}
}
Error:
{
“errorType”: “TypeError”,
“errorMessage”: “quicksightGetSession.getQSearchBarEmbedUrl is not a function”,
“code”: “TypeError”,
“message”: “quicksightGetSession.getQSearchBarEmbedUrl is not a function”,
“time”: “2024-10-16T11:41:04.734Z”,
“stack”: [
“TypeError: quicksightGetSession.getQSearchBarEmbedUrl is not a function”,
" at Response. (/var/task/app.js:138:70)“,
" at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:367:18)”,
" at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)“,
" at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10)”,
" at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:686:14)“,
" at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)”,
" at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)“,
" at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10”,
" at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)“,
" at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:688:12)”
]
}