I was trying to do some cost and performance analysis on a lambda function I have which I built using a container image. However whenever I would run a analyze-lambda-cost on that function, or list-lambda I would get the error message:
TypeError: Cannot read property 'width' of null
Running the function on any other lambda would work perfectly fine, but after digging into the source code and the source code of cli-tables I found that it was getting tripped up by my container image lambda because the runtime value is null like so:
Hi there,
I was trying to do some cost and performance analysis on a lambda function I have which I built using a container image. However whenever I would run a
analyze-lambda-cost
on that function, orlist-lambda
I would get the error message:Running the function on any other lambda would work perfectly fine, but after digging into the source code and the source code of cli-tables I found that it was getting tripped up by my container image lambda because the runtime value is null like so:
Passing this into the
table.toString()
function causes the type error in cli-tables. When it runs the get_width function.