Bunyan 1.8.15 发生崩溃: TypeError: rec.msg.indexOf 不是函数
作者: HsnImam创建于 2026年2月23日更新于 2026年2月23日
- platform: darwin
- node version: v18.20.3
- bunyan version: 1.8.15
- argv: ["/Users/hassan/.nvm/versions/node/v18.20.3/bin/node","/Users/hassan/Desktop/projects/eligibility-service/node_modules/.bin/bunyan"]
- log line: "{"name":"dario-eligibility-service-qa","hostname":"Hassan-Imam-XTWKX7L995","pid":16766,"level":50,"msg":{"stack":"Error: PeriodicExportingMetricReader: metrics export failed (error Error: 14 UNAVAILABLE: No connection established. Last error: Error: connect ECONNREFUSED 127.0.0.1:4317. Resolution note: )\n at doExport (/Users/hassan/Desktop/projects/eligibility-service/node_modules/@opentelemetry/sdk-metrics/src/export/PeriodicExportingMetricReader.ts:133:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at PeriodicExportingMetricReader._doRun (/Users/hassan/Desktop/projects/eligibility-service/node_modules/@opentelemetry/sdk-metrics/src/export/PeriodicExportingMetricReader.ts:148:7)\n at PeriodicExportingMetricReader._runOnce (/Users/hassan/Desktop/projects/eligibility-service/node_modules/@opentelemetry/sdk-metrics/src/export/PeriodicExportingMetricReader.ts:104:7)","message":"PeriodicExportingMetricReader: metrics export failed (error Error: 14 UNAVAILABLE: No connection established. Last error: Error: connect ECONNREFUSED 127.0.0.1:4317. Resolution note: )","name":"Error"},"time":"2026-02-23T05:21:27.350Z","src":{"file":"/Users/hassan/Desktop/projects/eligibility-service/src/coralogix-apm/coralogix-apm.service.ts","line":85,"func":"error"},"v":0}"
- stack:
TypeError: rec.msg.indexOf is not a functionat emitRecord (/Users/hassan/Desktop/projects/eligibility-service/node_modules/bunyan/bin/bunyan:851:21)at handleLogLine (/Users/hassan/Desktop/projects/eligibility-service/node_modules/bunyan/bin/bunyan:741:16)at Socket.<anonymous> (/Users/hassan/Desktop/projects/eligibility-service/node_modules/bunyan/bin/bunyan:1202:13)at Socket.emit (node:events:517:28)at addChunk (node:internal/streams/readable:368:12)at readableAddChunk (node:internal/streams/readable:337:11)at Readable.push (node:internal/streams/readable:278:10)at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Waiting for the debugger to disconnect... Waiting for the debugger to disconnect... node:events:495 throw er; // Unhandled 'error' event ^
内容来源: trentm/node-bunyan