Skip to content

xmpp.Iq is not a constructor #26

@ghost

Description

I get the error "TypeError: xmpp.Iq is not a constructor" when using the subscribe function

The error occurs on line 190 within superfeedr.js:
var subscribeStanza = new xmpp.Iq({to: SUPERFEEDR_ENDPOINT, id:id, type:'set', from: this.client.jid})

var subscribeStanza = new xmpp.Iq({to: SUPERFEEDR_ENDPOINT, id:id, type:'set',
 from: this.client.jid})
                        ^

TypeError: xmpp.Iq is not a constructor
    at Superfeedr.subscribe (C:\Users\pierr\Documents\Programing\Node\rss-feed-r
eader\node_modules\superfeedr\lib\superfeedr.js:190:25)
    at Superfeedr.<anonymous> (C:\Users\pierr\Documents\Programing\Node\rss-feed
-reader\index.js:6:10)
    at emitNone (events.js:86:13)
    at Superfeedr.emit (events.js:185:7)
    at Client.<anonymous> (C:\Users\pierr\Documents\Programing\Node\rss-feed-rea
der\node_modules\superfeedr\lib\superfeedr.js:19:10)
    at emitOne (events.js:96:13)
    at Client.emit (events.js:188:7)
    at Client.useFeatures (C:\Users\pierr\Documents\Programing\Node\rss-feed-rea
der\node_modules\node-xmpp-client\lib\Client.js:365:10)
    at Client._handleSessionState (C:\Users\pierr\Documents\Programing\Node\rss-
feed-reader\node_modules\node-xmpp-client\lib\Client.js:261:10)
    at Client._handleStanza (C:\Users\pierr\Documents\Programing\Node\rss-feed-r
eader\node_modules\node-xmpp-client\lib\Client.js:242:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions