See which `gitterMessageId` we were trying to import where the Gitter user is missing
See which gitterMessageId
we were trying to import where the Gitter user is missing. Now that _getOrCreateMatrixUserByGitterUserIdCached(...)
is inside the try
/catch
it will get the RethrownError
context of which gitterMessageId
we were working on when it happened.
Previous error:
2023-01-30T08:55:29.607Z - error: Error occurred while backfilling events for opts.uri=gitter/gitter gitterRoomId=529c94dded5ab0b3bf04e16e: Error: Unable to get or create Matrix user because we were unable to find a Gitter user with gitterUserId=546fd55adb8155e6700d6eac
at MatrixUtils.getOrCreateMatrixUserByGitterUserId (./modules/matrix-bridge/lib/matrix-utils.js:871:13)
at async _getOrCreateMatrixUserByGitterUserIdCached (./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:183:20)
at async importFromChatMessageStreamIterable (./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:350:24)
at async importMessagesFromGitterRoomToHistoricalMatrixRoom (./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:592:3)
at async gitterToMatrixHistoricalImport (./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:650:3)
at async exec (./scripts/utils/gitter-to-matrix-historical-import-one-room.js:63:3)
New error:
2023-01-30T17:47:25.393Z - error: Error occurred while backfilling events for opts.uri=gitter/gitter gitterRoomId=529c94dded5ab0b3bf04e16e: RethrownError: Failed to import gitterMessageId=54b823d273b182a117e9cc4a
at ./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:397:18
--- Original Error ---
Error: Unable to get or create Matrix user because we were unable to find a Gitter user with gitterUserId=546fd55adb8155e6700d6eac
at MatrixUtils.getOrCreateMatrixUserByGitterUserId (./modules/matrix-bridge/lib/matrix-utils.js:877:13)
at async _getOrCreateMatrixUserByGitterUserIdCached (./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:183:20)
at async ./modules/matrix-bridge/lib/gitter-to-matrix-historical-import.js:354:28
Follow-up to !2313 (merged)
Part of #2609 (closed)
Edited by Eric Eastwood