N
Novu14mo ago
dmgarland

TypeError: Cannot read properties of undefined (reading 'child')

Seeing lots of these errors in our workers processing digests, and I see this in the stack trace for the job. Worker log { "level": 50, "time": 1699008800882, "pid": 17, "serviceName": "@novu/worker", "serviceVersion": "0.17.1", "platform": "Docker", "tenant": "OS", "context": "WorkflowQueueService", "msg": "Failed to run the job 65437fa0b9c1e45d5c68e928 during worker processing" } In the job in the Mongo database, I see this stack trace
error: {
stack: "TypeError: Cannot read properties of undefined (reading 'child')\n" +
' at PinoLogger.assign (/usr/src/app/node_modules/.pnpm/[email protected]_g2cqd4mgcg63o5mvxc7l66lzja/node_modules/nestjs-pino/PinoLogger.js:106:37)\n' +
' at RunJob.<anonymous> (/usr/src/app/apps/worker/dist/webpack:/@novu/worker/src/app/workflow/usecases/run-job/run-job.usecase.ts:33:18)\n' +
' at Generator.next (<anonymous>)\n' +
' at fulfilled (/usr/src/app/apps/worker/dist/main.js:1856:58)\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)',
message: "Cannot read properties of undefined (reading 'child')"
}
error: {
stack: "TypeError: Cannot read properties of undefined (reading 'child')\n" +
' at PinoLogger.assign (/usr/src/app/node_modules/.pnpm/[email protected]_g2cqd4mgcg63o5mvxc7l66lzja/node_modules/nestjs-pino/PinoLogger.js:106:37)\n' +
' at RunJob.<anonymous> (/usr/src/app/apps/worker/dist/webpack:/@novu/worker/src/app/workflow/usecases/run-job/run-job.usecase.ts:33:18)\n' +
' at Generator.next (<anonymous>)\n' +
' at fulfilled (/usr/src/app/apps/worker/dist/main.js:1856:58)\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)',
message: "Cannot read properties of undefined (reading 'child')"
}
Any ideas on what might be the problem?
2 Replies
Pawan Jain
Pawan Jain13mo ago
Thanks @dmgarland 🙏🏻
Want results from more Discord servers?
Add your server