simple-xmpp / node-simple-xmpp

Simple High Level NodeJS XMPP Client
302 stars 90 forks source link

stream error #37

Open jpillora opened 10 years ago

jpillora commented 10 years ago
$ 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

silverbucket commented 10 years ago

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

jpillora commented 10 years ago

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/simple-xmpp/node-simple-xmpp/issues/37#issuecomment-26055747 .

shurane commented 10 years ago

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: https://github.com/astro/node-xmpp/pull/85 . That relies on OAuth 2.0 access_token, which periodically expires. Is there a better way using jid and password?