Open andir opened 3 years ago
Apparently related to https://github.com/matrix-org/matrix-appservice-irc/issues/1270 as that contains similar output from other users.
It looks bad, but it's not the same as #1270. I've posted a solution to that one.
It's Jan 2022, there's no fix? I dunno but this seems trivial to fix no? For those who come here, wondering what to do:
--- lib/bridge/MatrixHandler.js.original 2022-01-08 09:34:16.830231247 -0500
+++ lib/bridge/MatrixHandler.js 2022-01-08 09:23:30.582026773 -0500
@@ -78,7 +78,8 @@
}
}
catch (err) {
- req.log.debug(`Not a plumbed room: Error retrieving m.room.plumbing (${err.data.error})`);
+ //req.log.debug(`Not a plumbed room: Error retrieving m.room.plumbing (${err.data.error})`);
+ req.log.debug(`Not a plumbed room: Error retrieving m.room.plumbing (FIXME)`);
}
// clobber any previous admin room ID
await this.ircBridge.getStore().storeAdminRoom(mxRoom, inviter.userId);
NOTE: I want to point out, joining a bridge room, the bot invites me fine. It's when I leave the DM and DM the bot back, does this problem occur. Also, if for some reason (like #1270) profile is missing, I get the same exception.
Describe the bug I believe the error logging code in the
MatrixHandler::handleAdminRoomInvite
function is actually wrong in this line: https://github.com/matrix-org/matrix-appservice-irc/blob/df0d2c8a23e01513a829c0d8a1ac411de32b6c92/src/bridge/MatrixHandler.ts#L139During testing on a hackint test instance of the bridge we did observe the above mentioned line throw because the attribute
data
doesn't exist on the exception that was caught. Unfortunately I can't tell which exception from the logs we have.To Reproduce Steps to reproduce the behavior:
Expected behavior
The error message (including the exception body?) should be logged and not cause another exception.