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
as part of some refactoring. (children is not valid as per xmldom/xmldom#410)
I am using the ejabberd server and it was sending a "spurious" stream:error because of a misconfiguration, but I need to be able to catch the error instead of it going as unhandled exception to the nodejs handler.
[edit: added the complete callstack]
[1] [16:23:32.982] ERROR (server): UNHANDLED
[1] err: {
[1] "type": "TypeError",
[1] "message": "Cannot read properties of undefined (reading '0')",
[1] "stack":
[1] TypeError: Cannot read properties of undefined (reading '0')
[1] at Websocket._checkStreamError (\lib\server.js:5627:37)
[1] at Websocket._onMessage (\lib\server.js:6015:18)
[1] at socket.onmessage (\lib\server.js:5810:45)
[1] at callListener (\node_modules\ws\lib\event-target.js:290:14)
[1] at WebSocket.onMessage (\node_modules\ws\lib\event-target.js:209:9)
[1] at WebSocket.emit (node:events:519:28)
[1] at WebSocket.emit (node:domain:488:12)
[1] at Receiver.receiverOnMessage (\node_modules\ws\lib\websocket.js:1209:20)
[1] at Receiver.emit (node:events:519:28)
[1] at Receiver.emit (node:domain:488:12)
[1] }
The text was updated successfully, but these errors were encountered:
Why am I getting an undefined error when I receive a
stream:error
IQ message ?This is the relevant line:
strophejs/src/websocket.js
Line 99 in fd5916e
And it only happens when the connection is already open, not when connecting as evidenced by
onMessage
processing on my call stack.strophejs/src/websocket.js
Line 483 in fd5916e
It seems someone had changed it from
to
as part of some refactoring. (
children
is not valid as per xmldom/xmldom#410)I am using the ejabberd server and it was sending a "spurious" stream:error because of a misconfiguration, but I need to be able to catch the error instead of it going as unhandled exception to the nodejs handler.
[edit: added the complete callstack]
The text was updated successfully, but these errors were encountered: