You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bridge sometimes crashes with the following error:
yarn run v1.22.22
$ node ./build/src/discordas.js
/home/matrix-discord-bridge/matrix-appservice-discord/src/presencehandler.ts:122
const type = activity.type[0] + activity.type.substring(1).toLowerCase(); // STREAMING -> Streaming;
^
TypeError: Cannot read properties of undefined (reading '0')
at PresenceHandler.getUserPresence (/home/matrix-discord-bridge/matrix-appservice-discord/src/presencehandler.ts:122:39)
at PresenceHandler.<anonymous> (/home/matrix-discord-bridge/matrix-appservice-discord/src/presencehandler.ts:98:29)
at Generator.next (<anonymous>)
at /home/matrix-discord-bridge/matrix-appservice-discord/build/src/presencehandler.js:23:71
at new Promise (<anonymous>)
at __awaiter (/home/matrix-discord-bridge/matrix-appservice-discord/build/src/presencehandler.js:19:12)
at PresenceHandler.ProcessUser (/home/matrix-discord-bridge/matrix-appservice-discord/build/src/presencehandler.js:91:16)
at PresenceHandler.<anonymous> (/home/matrix-discord-bridge/matrix-appservice-discord/src/presencehandler.ts:106:43) at Generator.next (<anonymous>)
at /home/matrix-discord-bridge/matrix-appservice-discord/build/src/presencehandler.js:23:71
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When this crash occurs, the bridge crashes immediately after rebooting. However, after some time and several reboots, the crash does not reoccur.
To investigate the cause of this error, I added console.log(presence) to presencehandler.ts:120 and got the following output:
Hello,
The bridge sometimes crashes with the following error:
When this crash occurs, the bridge crashes immediately after rebooting. However, after some time and several reboots, the crash does not reoccur.
To investigate the cause of this error, I added
console.log(presence)
topresencehandler.ts:120
and got the following output:It seems that this occurs when someone joins a voice channel with a Hang Status set.
I hope this helps!
The text was updated successfully, but these errors were encountered: