TypeError: Cannot read properties of undefined (reading 'VarCharValue') in ccf tool

17 views
Skip to first unread message

Shainy Dsouza

unread,
Jun 14, 2024, 10:37:11 AMJun 14
to Cloud Carbon Footprint
Hi Team

i have set up the Cloud carbon app with aws cloud provider.
The athena query returns the results in the cosole while running via cloud carbon i am getting the below error

   const cost = parseFloat(rowData[8].VarCharValue)

                                       ^

TypeError: Cannot read properties of undefined (reading 'VarCharValue')

    at CostAndUsageReports.convertAthenaRowToCostAndUsageReportsRow (app path /node_modules/@cloud-carbon-footprint/aws/src/lib/CostAndUsageReports.ts:790:40)


Regards

Jovita

Cloud Carbon Footprint

unread,
Jun 20, 2024, 12:44:23 PMJun 20
to Cloud Carbon Footprint
Hi Jovita,

Thanks for reaching out! Could you please open up a new issue in our Github Repository? Just looking at the code at this line, it looks like it is trying to parse information about cost. In the meantime, you could consider expecting the Athena query response to make sure the cost column is returning valid data.

Thanks,
CCF Team

Shainy Dsouza

unread,
Jun 24, 2024, 9:58:45 AMJun 24
to Cloud Carbon Footprint
Hi Team

I think its due to costdata being very minimal .I am able to fetch the value now

Regards
JOvita 

Reply all
Reply to author
Forward
0 new messages