boomerang icon indicating copy to clipboard operation
boomerang copied to clipboard

Bug: Trying to read metric from plugin that is undefined

Open danielgsims opened this issue 3 years ago • 1 comments

I am experiencing an edge case where I am trying to read Time to First Interaction, but do not have the EventTiming plugin.

https://github.com/akamai/boomerang/blob/master/plugins/continuity.js#L3369-L3376

In the above code, there is a path where fid is loaded from the externalMetrics while the EventTiming plugin is undefined or not enabled, but then ttfi tries to read from the EventTiming plugin while it is undefined, resulting in the error TypeError: Cannot read properties of undefined (reading 'metrics')

danielgsims avatar Dec 05 '21 00:12 danielgsims

Thank you for investigating and reporting this issue.

bluesmoon avatar Dec 05 '21 01:12 bluesmoon