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

Deprecation warning for TLS resulting a failed connection. #13

Open
pc-magas opened this issue Nov 22, 2018 · 0 comments
Open

Deprecation warning for TLS resulting a failed connection. #13

pc-magas opened this issue Nov 22, 2018 · 0 comments

Comments

@pc-magas
Copy link

pc-magas commented Nov 22, 2018

I have the following working sample:

const junction=require('junction');

var app = junction()
  .use(junction.messageParser())
  .use(junction.presenceParser());


  app.connect({ jid: 'admin@example.com', password: 'admin' }).on('online', function() {
    console.log('connected as: ' + this.jid);
    this.send(new Presence());
  });

But when i try to run it like:

NODE_ENV=dev DEBUG="xmpp:*,junction" node ./src/index.js

I get the following errors:

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
  junction use * messageParser +0ms
  junction use * presenceParser +0ms
(node:7800) [DEP0064] DeprecationWarning: tls.createSecurePair() is deprecated. Please use tls.Socket instead.
events.js:188
      throw err;
      ^

Error: Unhandled "error" event. (XMPP authentication failure)
    at Client.emit (events.js:186:19)
    at Client.onRawStanza (/home/pcmagas/Kwdikas/master_thesis/junction/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
    at emitOne (events.js:116:13)
    at Client.emit (events.js:211:7)
    at Client.Connection.onStanza (/home/pcmagas/Kwdikas/master_thesis/junction/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
    at StreamParser.<anonymous> (/home/pcmagas/Kwdikas/master_thesis/junction/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
    at emitOne (events.js:116:13)
    at StreamParser.emit (events.js:211:7)
    at Parser.<anonymous> (/home/pcmagas/Kwdikas/master_thesis/junction/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
    at emitOne (events.js:116:13)

On nodejs version 8.11.1 results ending the programm whilst on nodejs 10.13.0 just throws this warning and continues without the online event happens.

@pc-magas pc-magas changed the title Junction deprecation warning for TLS Deprecation warning for TLS fails to connect. Nov 22, 2018
@pc-magas pc-magas changed the title Deprecation warning for TLS fails to connect. Deprecation warning for TLS resulting a failed connection. Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant