simple-xmpp/node-simple-xmpp

stream error

Opened this issue · 3 comments

$ node examples/echo.js ...@gmail.com ...
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
{ name: 'stream:error',
  parent: null,
  attrs: { 'xmlns:stream': 'http://etherx.jabber.org/streams' },
  children:
   [ { name: 'invalid-xml',
       parent: [Circular],
       attrs: [Object],
       children: [] } ] }

Any ideas?

Edit: Node v0.10.16 - OSX 10.8.4

I'm not sure, it seems like an issue with node-xmpp's dependency node-stringprep. I get the same error, then I tried npm install -g node-stringprep, after which I ran the example again and did not get the object dump (however I still get the warning Cannot load StringPrep-0.1.0 bindings. You may need tonpm install node-stringprep'`.

Maybe ask on the node-xmpp repo?
https://github.com/astro/node-xmpp

Hi Nick, yup will post there, and stringprep doesn't install for me, I
receive an error though I'm on the iPhone right now

On Friday, October 11, 2013, Nick Jennings wrote:

I'm not sure, it seems like an issue with node-xmpp's dependency
node-stringprep. I get the same error, then I tried npm install -g
node-stringprep, after which I ran the example again and did not get the
object dump (however I still get the warning Cannot load StringPrep-0.1.0
bindings. You may need tonpm install node-stringprep'`.

Maybe ask on the node-xmpp repo?
https://github.com/astro/node-xmpp


Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-26055747
.

I get the same issue whether I have node-stringprep or not.

The only way I've been able to log in to a Google Chat account is via instructions in this pull request: xmppjs/xmpp.js#85 . That relies on OAuth 2.0 access_token, which periodically expires. Is there a better way using jid and password?