question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read properties of undefined (reading 'fetchStart')

See original GitHub issue

After deploying RUM, I don’t seem to get data from some users. Got their data in Sentry though, so here it is:

Browser

name Chrome
version 96.0.4664

OS

Name Windows
Version 10

SDK

Name @elastic/apm-rum
Version 5.9.1

Stacktrace

TypeError: Cannot read properties of undefined (reading 'fetchStart')
  at ? (./node_modules/@elastic/apm-rum-core/dist/es/common/compress.js:115:27)
  at Array.forEach(<anonymous>)
  at compressMarks(./node_modules/@elastic/apm-rum-core/dist/es/common/compress.js:113:31)
  at compressTransaction(./node_modules/@elastic/apm-rum-core/dist/es/common/compress.js:195:8)
  at ? (./node_modules/@elastic/apm-rum-core/dist/es/common/apm-server.js:313:94)
  at Array.map(<anonymous>)
  at ndjsonTransactions(./node_modules/@elastic/apm-rum-core/dist/es/common/apm-server.js:291:25)
  at sendEvents(./node_modules/@elastic/apm-rum-core/dist/es/common/apm-server.js:359:87)
  at onFlush(./node_modules/@elastic/apm-rum-core/dist/es/common/apm-server.js:33:27)
  at flush(./node_modules/@elastic/apm-rum-core/dist/es/common/queue.js:34:10)
  at apply(./node_modules/@elastic/apm-rum-core/dist/es/common/queue.js:20:20)
  at r(./node_modules/@sentry/browser/esm/helpers.js:72:23)

It seems to work for most users, and not for some others.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kanadajcommented, Dec 1, 2021

Ah sorry, only saw your reply just now, sorry about the lack of a reply! Thankfully you were able to reproduce, I found it hard to repro it reliably at all. Please LMK once this is fixed, atm it makes me unable to gather data from a subset of users.

0reactions
devcorpiocommented, Dec 9, 2021

Hi @kanadaj a new release with the fix is available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting TypeError: Cannot read properties of undefined ...
While trying to fetch values in a class component I am getting the below error. Here I am trying to get data from...
Read more >
Cannot read property 'isStarted' of undefined #2640 - GitHub
When running the service in build mode I get this error: /app/api/node_modules/elastic-apm-node/lib/agent.js:209 if (this.
Read more >
Can Not Read Properties of Undefined Reading Map in React ...
If you are looking at can not read properties of undefined reading map in react js error or map function is not displaying...
Read more >
Error: TypeError: Cannot read property 'startTime' of undefined
I need help with the error I'm getting: TypeError: Cannot read property 'startTime' of undefined. Is there anything special in your setup?
Read more >
PerformanceTiming.fetchStart - Web APIs | MDN
The legacy PerformanceTiming.fetchStart read-only property returns an unsigned long long representing the moment, in milliseconds since the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found