Skip to content

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'write') #1058

Open
@filipw01

Description

@filipw01

⚠ If you need help with XMPP itself, please visit https://xmpp.org/community/ instead.

It looks like socket can be possibly null while Client.write is called

Image

Error stack trace

VM4851 chunk-QKGHVZFU.js:317 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'write')
    at VM4851 chunk-QKGHVZFU.js:317:23
    at new Promise (<anonymous>)
    at Client.write (VM4851 chunk-QKGHVZFU.js:312:16)
    at Client.send (VM4851 chunk-QKGHVZFU.js:302:20)
    at Client.send (VM4734 @xmpp_websocket.js:152:22)
    at Client.send (VM4733 @xmpp_client-core.js:29:46)
    at IQCaller.request (VM4737 @xmpp_iq_caller.js:93:29)
    at IQCaller._childRequest (VM4737 @xmpp_iq_caller.js:106:21)
    at IQCaller.set (VM4737 @xmpp_iq_caller.js:114:21)
    at bind (VM4743 @xmpp_resource-binding.js:19:37)

A clear and concise description of what the bug is.

@xmpp/client: 0.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions