Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmpp.Iq is not a constructor #26

Open
ghost opened this issue Feb 28, 2017 · 4 comments
Open

xmpp.Iq is not a constructor #26

ghost opened this issue Feb 28, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2017

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)
@marcusdomingo
Copy link

bump

@jonbaer
Copy link

jonbaer commented Nov 27, 2017

+1

@lumberbeard
Copy link

I fixed this on my side. If you debug and look at the valid functions for new xmpp.Iq you'll see it's now IQ rather than Iq. Modifying this fixed the code.

-Brian

@jbbae
Copy link

jbbae commented Jun 9, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants