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

Unsupported ssl protocol on node v12 #30

Open
JimLynchCodes opened this issue Mar 25, 2020 · 1 comment
Open

Unsupported ssl protocol on node v12 #30

JimLynchCodes opened this issue Mar 25, 2020 · 1 comment

Comments

@JimLynchCodes
Copy link

Hello! I am trying to run code similar to the example file with node v12.16.1.

Here is my code:

var Superfeedr = require('superfeedr');

client = new Superfeedr("Eonjim", "[my_actual_password]");
client.on('connected', function () {

    console.log('connected!');
    client.subscribe("http://blog.superfeedr.com/atom.xml", function (err, feed) {
        
          console.log('subscribed!', feed);
    });
});

It seems to be successfully connected, but when trying to subscribe to any feed I just get the same error...

Here is the error output I'm seeing:

events.js:288
      throw er; // Unhandled 'error' event
      ^

Error: 4412734912:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1929:

Emitted 'error' event on Client instance at:
    at Client.<anonymous> (/Users/jlynch/Git-Projects/Ameritrader-Bots/news-watcher/node_modules/node-xmpp-client/lib/Client.js:158:23)
    at Connection.emit (events.js:323:22)
    at TLSSocket.onDisconnect (/Users/jlynch/Git-Projects/Ameritrader-Bots/news-watcher/node_modules/reconnect-core/index.js:59:17)
    at TLSSocket.emit (events.js:323:22)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  library: 'SSL routines',
  function: 'ssl_choose_client_version',
  reason: 'unsupported protocol',
  code: 'ERR_SSL_UNSUPPORTED_PROTOCOL'
}

Any thoughts on what I'm doing wrong here?

Thanks! ♥️

@JimLynchCodes
Copy link
Author

bump 🙃

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

1 participant