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.

Error: Uncaught (in promise): TypeError: Cannot read property 'updated_at' of undefinedTypeError: Cannot read property 'updated_at' of undefined

See original GitHub issue

Steps to Reproduce

  1. I put my macbook to sleep, I guess maybe the app was still running some timer?
  2. the app was running on a secondary display connected via usb-c

Error Log (Desktop only)

Error: Uncaught (in promise): TypeError: Cannot read property ‘updated_at’ of undefined TypeError: Cannot read property ‘updated_at’ of undefined at t. (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:2544769) at Generator.next () at o (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:2542438) at l.invoke (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/polyfills.3f21005097f2d4ba8d4e.js:1:6534) at Object.onInvoke (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:140387) at l.invoke (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/polyfills.3f21005097f2d4ba8d4e.js:1:6474) at t.run (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/polyfills.3f21005097f2d4ba8d4e.js:1:1933) at file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/polyfills.3f21005097f2d4ba8d4e.js:1:16742 at l.invokeTask (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/polyfills.3f21005097f2d4ba8d4e.js:1:7152) at Object.onInvokeTask (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:140203) this._gitlabApiService.getByIds$ (webpack:///src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts:161:53)toString (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:2542438)invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:372:25)onInvoke (webpack:///node_modules/@angular/core/fesm2015/core.js:28672:32)invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:371:51)run (webpack:///node_modules/zone.js/fesm2015/zone.js:134:42)zone.scheduleMicroTask(source, (webpack:///node_modules/zone.js/fesm2015/zone.js:1276:35)invokeTask (webpack:///node_modules/zone.js/fesm2015/zone.js:406:30)onInvokeTask (webpack:///node_modules/@angular/core/fesm2015/core.js:28659:32)scheduleResolveOrReject (webpack:///node_modules/zone.js/fesm2015/zone.js:1213:30)makeResolver (webpack:///node_modules/zone.js/fesm2015/zone.js:1120:16)toString (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:2561001)invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:372:25)onInvoke (webpack:///node_modules/@angular/core/fesm2015/core.js:28672:32)invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:371:51)run (webpack:///node_modules/zone.js/fesm2015/zone.js:134:42)zone.scheduleMicroTask(source, (webpack:///node_modules/zone.js/fesm2015/zone.js:1276:35)invokeTask (webpack:///node_modules/zone.js/fesm2015/zone.js:406:30)onInvokeTask (webpack:///node_modules/@angular/core/fesm2015/core.js:28659:32) META: SP7.6.0 Electron – en-US – MacIntel – Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.6.0 Chrome/91.0.4472.124 Electron/13.1.7 Safari/537.36

Usually, you can find it here: on Linux: ~/.config/superProductivity/logs/main.log on macOS: ~/Library/Logs/superProductivity/main.log on Windows: %USERPROFILE%/AppData/Roaming/superProductivity/logs/main.log . -->

Console Output

Stacktrace

this._gitlabApiService.getByIds$ (webpack:///src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts:161:53)
toString (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:2542438)
invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:372:25)
onInvoke (webpack:///node_modules/@angular/core/fesm2015/core.js:28672:32)
invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:371:51)
run (webpack:///node_modules/zone.js/fesm2015/zone.js:134:42)
zone.scheduleMicroTask(source, (webpack:///node_modules/zone.js/fesm2015/zone.js:1276:35)
invokeTask (webpack:///node_modules/zone.js/fesm2015/zone.js:406:30)
onInvokeTask (webpack:///node_modules/@angular/core/fesm2015/core.js:28659:32)
scheduleResolveOrReject (webpack:///node_modules/zone.js/fesm2015/zone.js:1213:30)
makeResolver (webpack:///node_modules/zone.js/fesm2015/zone.js:1120:16)
toString (file:///Applications/Super%20Productivity.app/Contents/Resources/app.asar/dist/main.1a6b823be2f8c4954b23.js:1:2561001)
invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:372:25)
onInvoke (webpack:///node_modules/@angular/core/fesm2015/core.js:28672:32)
invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:371:51)
run (webpack:///node_modules/zone.js/fesm2015/zone.js:134:42)
zone.scheduleMicroTask(source, (webpack:///node_modules/zone.js/fesm2015/zone.js:1276:35)
invokeTask (webpack:///node_modules/zone.js/fesm2015/zone.js:406:30)
onInvokeTask (webpack:///node_modules/@angular/core/fesm2015/core.js:28659:32)

Meta Info

META: SP7.6.0 Electron – en-US – MacIntel – Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.6.0 Chrome/91.0.4472.124 Electron/13.1.7 Safari/537.36

Actions Before Error

1635264386348: [WorkContext] Set Active Work Context 
1635264386354: [Task] SetSelectedTask 
1635264386390: [Note] Load Note State 
1635264386392: [Bookmark] Load Bookmark State 
1635264386393: [Project] Load Project related Data Success 
1635264386393: [Improvement] Clear Hidden Improvements 
1635264386393: [Improvement] Delete multiple Improvements 
1635264387983: [Layout] Show AddTaskBar 
1635264394553: [Task][Issue] Add Task 
1635264394560: [Persistence] Save to DB (2) 
1635264397852: [Layout] Hide AddTaskBar 
1635264407943: [Task] Update Task 
1635264407944: [Persistence] Save to DB 
1635264411393: [Layout] Show AddTaskBar 
1635264418667: [Task][Issue] Add Task 
1635264418674: [Persistence] Save to DB (2) 
1635264490982: [Idle] Reset (11) 
1635264496688: [Layout] Hide AddTaskBar 
1635266062556: [Idle] Reset (85) 
1635266072620: [WorkContext] Set Active Work Context 
1635266072628: [Task] SetSelectedTask 
1635266072654: [Note] Load Note State 
1635266072656: [Bookmark] Load Bookmark State 
1635266072656: [Project] Load Project related Data Success 
1635266072657: [Improvement] Clear Hidden Improvements 
1635266072657: [Improvement] Delete multiple Improvements 
1635266081716: [Task][Issue] Add Task 
1635266081722: [Persistence] Save to DB (2) 
1635318660433: [Idle] Reset (2379)

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
ishanaroracommented, Oct 31, 2021

Fixed in 48e2b919f

1reaction
ishanaroracommented, Oct 30, 2021

Duplicate of #1634

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
TypeError: Cannot read property 'createdAt' of undefined #123
Hello i´m getting this error "TypeError: Cannot read property 'createdAt' of undefined" do you have any idea what i can be?
Read more >
I cannot find the error TypeError: Cannot read properties of ...
Your issue is that your .find() method is returning undefined , so you can't access properties on product such as .name as it...
Read more >
error: cannot read property 'replace' of undefined sequelize
Doing this in practice does not get me any return values from the Model.upsert() promise at all. Here is some code that fails...
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
How to Avoid the Infamous "Cannot read properties of undefined" Error ... undefined console.log(powerLevel.length); // Uncaught TypeError: ...
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