matrix-org / matrix-bifrost

General purpose bridging with a variety of backends including libpurple and xmpp.js
Apache License 2.0
164 stars 31 forks source link

Uncaught Promise: Cannot read property 'anonymousJid' of undefined #233

Open jaller94 opened 3 years ago

jaller94 commented 3 years ago

Describe the bug Uncaught promise

Feb 22 11:14:28 lethe docker-bifrost[15504]: (node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'anonymousJid' of undefined
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at XmppJsInstance.<anonymous> (/app/src/xmppjs/XJSGateway.ts:57:80)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at XmppJsInstance.emit (events.js:314:20)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at XmppJsInstance.handleTextMessage (/app/src/xmppjs/XJSInstance.ts:756:18)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at XmppJsInstance.handleMessageStanza (/app/src/xmppjs/XJSInstance.ts:715:21)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at XmppJsInstance.onStanza (/app/src/xmppjs/XJSInstance.ts:491:22)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at Component.<anonymous> (/app/src/xmppjs/XJSInstance.ts:230:22)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at Component.emit (events.js:314:20)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at Component._onElement (/app/node_modules/@xmpp/component-core/node_modules/@xmpp/connection/index.js:106:10)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at Parser.emit (events.js:314:20)
Feb 22 11:14:28 lethe docker-bifrost[15504]:     at Parser.onEndElement (/app/node_modules/@xmpp/xml/lib/Parser.js:52:12)
Feb 22 11:14:28 lethe docker-bifrost[15504]: (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 260046)

To Reproduce Steps to reproduce the behavior: Not investigated

Expected behavior No uncaught promises.

Additional context Add any other context about the problem here.