TypeError: Cannot read properties of null (reading '_id')
at /opt/meshcentral/node_modules/meshcentral/meshrelay.js:978:261
at /opt/meshcentral/node_modules/meshcentral/db.js:2250:29
at /opt/meshcentral/node_modules/mongodb/lib/utils.js:371:9
at /opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:260:32
at /opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:510:55
at /opt/meshcentral/node_modules/mongodb/lib/utils.js:371:9
at /opt/meshcentral/node_modules/mongodb/lib/sessions.js:136:24
at maybePromise (/opt/meshcentral/node_modules/mongodb/lib/utils.js:357:5)
at ClientSession.endSession (/opt/meshcentral/node_modules/mongodb/lib/sessions.js:133:41)
at cleanupCursor (/opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:557:32)
The error:
/opt/meshcentral/node_modules/meshcentral/meshrelay.js:978 const command = { nodeid: node._id, action: 'msg', type: 'tunnel', value: '*/' + xdomain + 'meshrelay.ashx?p=' + obj.req.query.p + '&id=' + obj.id + '&rauth=' + rcookie + '&nodeid=' + node._id, soptions: {}, rights: cookie.r, guestuserid: user._id, guestname: cookie.gn, consent: cookie.cf, remoteaddr: cleanRemoteAddr(obj.req.clientIp) }; ^
TypeError: Cannot read properties of null (reading '_id') at /opt/meshcentral/node_modules/meshcentral/meshrelay.js:978:261 at /opt/meshcentral/node_modules/meshcentral/db.js:2250:29 at /opt/meshcentral/node_modules/mongodb/lib/utils.js:371:9 at /opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:260:32 at /opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:510:55 at /opt/meshcentral/node_modules/mongodb/lib/utils.js:371:9 at /opt/meshcentral/node_modules/mongodb/lib/sessions.js:136:24 at maybePromise (/opt/meshcentral/node_modules/mongodb/lib/utils.js:357:5) at ClientSession.endSession (/opt/meshcentral/node_modules/mongodb/lib/sessions.js:133:41) at cleanupCursor (/opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:557:32)