添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Error: Cannot read property 'id' of undefined #2178

@hienlh

Description

Description

I'm stucking with this issue in my Production server. When adding a job to queue, sometimes It throws an error "Cannot read property 'id' of undefined", I was using Bull Board to retry several times and it's work. I have double-checked my code and logging, so this exception is not from my code.

TypeError: Cannot read property 'id' of undefined
    at PayrollService.sendSystemEmailWithQueue (/app/dist/modules/payroll/payroll.service.js:60:106)
    at handlers.<computed> (/app/node_modules/bull/lib/queue.js:663:42)
    at Queue.processJob (/app/node_modules/bull/lib/queue.js:1098:22)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Bull version

I'm using node v12.20.1, @nestjs/bull ^0.4.1, Redis 6.0.5. I have tried both 0.4.1 and 0.3.1, but same issue.