haraka / haraka-plugin-log-reader

extracts matching log entries from haraka log files
https://www.npmjs.com/package/haraka-plugin-log-reader
MIT License
2 stars 3 forks source link

getting TypeError: matchMonthDay.exec is not a function or its return value is not iterable #24

Closed rogereiddir closed 2 years ago

rogereiddir commented 5 years ago

Hello , i am getting this error when hitting the route /logs/:uuid

can someone help thanks

[CRIT] [-] [core] TypeError: matchMonthDay.exec is not a function or its return value is not iterable [CRIT] [-] [core] at matched.split.forEach (/etc/haraka/node_modules/haraka-plugin-log-reader/index.js:119:36) [CRIT] [-] [core] at Array.forEach () [CRIT] [-] [core] at Object.exports.asHtml (/etc/haraka/node_modules/haraka-plugin-log-reader/index.js:110:23) [CRIT] [-] [core] at /etc/haraka/node_modules/haraka-plugin-log-reader/index.js:76:13 [CRIT] [-] [core] at Socket. (/etc/haraka/node_modules/haraka-plugin-log-reader/index.js:99:5) [CRIT] [-] [core] at Socket.emit (events.js:194:15) [CRIT] [-] [core] at endReadableNT (_stream_readable.js:1125:12) [CRIT] [-] [core] at process._tickCallback (internal/process/next_tick.js:63:19) [NOTICE] [-] [core] Shutting down

lacmuch commented 3 years ago

i've put [, monthDay] = matchMonthDay.exec(line); in try...catch and it works, but not showing the month day

msimerson commented 3 years ago

If you could copy/paste into this issue a section of log entries for the UUID in question, I should be able to replicate and fix the issue.

msimerson commented 2 years ago

I've since applied @lacmuch 's suggestion and with no follow up of logs to investigate why, I see nothing left to do here.