You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QuickSight client fails to create new Analysis resource with the error: TypeError: entry.getTime is not a function
SDK version number
@aws-sdk/client-quicksight@3.590.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
18.17.1
Reproduction Steps
// if the resouce already exists in aws, resource is marked for deletion// (creation will happen in other process)// if the resource does not exist on aws, resources is created (current scenario// where error is happening)// Initialization of client and placeholders mappingconstqs=getAWSQSClient(args.awsRegion!,args.awsProfile!);consttemplatePlaceholders={awsAccount: args.awsAccount!,awsRegion: args.awsRegion!,etlPrefix: args.etlPrefix!,};// template Object is parsed into a string and all placeholders are replaced to// generate the analysis definition that will be deployedconsttemplateStr=removeTemplatePlaceholders(JSON.stringify(template),templatePlaceholders,);// AnalysisDef is a simple interface that has the required information to// create a new analysis resource using qs client constanalysisDef=JSON.parse(templateStr)asAnalysisDef;// once the resource definition is ready, helper fn to create the resource is// calledawaitcreateAnalysis(client,analysisDef,templatePlaceholders.awsAccount,);// inside createAnalysis function: definition = analysisDefconstanalysisReq=awaitclient.send(newCreateAnalysisCommand({AnalysisId: definition.details.AnalysisId,AwsAccountId: awsAccount,Name: definition.details.Name,Definition: definition.definition,ThemeArn: definition.details.ThemeArn,}),);
Observed Behavior
Deploying Analyses...
[1/2] annotation_analysis
Resource has been marked for deletion (force deployment)
/Users/user/node_modules/@aws-sdk/client-quicksig
ht/dist-cjs/index.js:10754
return entry.getTime() / 1e3;
^
TypeError: entry.getTime is not a function
at /Users/user/node_modules/@aws-sdk/client-q
uicksight/dist-cjs/index.js:10754:18
at Array.map (<anonymous>)
at se_DateTimeDefaultValueList (/Users/user/n
ode_modules/@aws-sdk/client-quicksight/dist-cjs/index.js:10753:41)
at StaticValues (/Users/user/node_modules/@aw
s-sdk/client-quicksight/dist-cjs/index.js:10761:26)
at applyInstruction (/Users/user/node_modules
/@smithy/smithy-client/dist-cjs/index.js:1089:27)
at take (/Users/user/node_modules/@smithy/smi
thy-client/dist-cjs/index.js:1057:5)
at se_DateTimeDefaultValues (/Users/user/node
_modules/@aws-sdk/client-quicksight/dist-cjs/index.js:10758:40)
at DefaultValues (/Users/user/node_modules/@a
ws-sdk/client-quicksight/dist-cjs/index.js:10778:27)
at applyInstruction (/Users/user/node_modules
/@smithy/smithy-client/dist-cjs/index.js:1089:27)
at take (/Users/user/node_modules/@smithy/smi
thy-client/dist-cjs/index.js:1057:5)
Expected Behavior
New QS Analysis been created
Possible Solution
Probably related to #6151 despite being in a different module
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered:
I see that there was already ongoing conversation in #6151 and from giving a quick glance at it, there might be conflict between the format service API uses and how it's actually documented. I'll need to sync up with other member for further investigation. Since this's the same topic, I'm going to close this in favor of the other issue so that we can track it in one place.
@nyamurray could you please elaborate more on your findings in the original issue? Thank you!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
QuickSight client fails to create new Analysis resource with the error: TypeError: entry.getTime is not a function
SDK version number
@aws-sdk/client-quicksight@3.590.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
18.17.1
Reproduction Steps
Observed Behavior
Deploying Analyses...
[1/2] annotation_analysis
Resource has been marked for deletion (force deployment)
[2/2] live_analytics
Removing placeholders from template...
- aws_account
- aws_region
- prefix
Expected Behavior
New QS Analysis been created
Possible Solution
Probably related to #6151 despite being in a different module
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: