2

我已经在 ubuntu AWS 服务器上安装了韵律。我曾尝试使用 Adium 客户端和 swift,但我得到了标题中指示的相同错误。我尝试使用 node-xmpp-client 创建客户端但同样的错误。

Node-XMPP 客户端代码:

const Client = require('node-xmpp-client');
const options = {
        jid: 'test@ec2-18-222-249-134.us-east-2.compute.amazonaws.com',
        password: 'password',
        host: 'ec2-18-222-249-134.us-east-2.compute.amazonaws.com'
}

       const client = new Client(options);
       client.once('online', connectionDetails =>{
       console.log('We are connected');
       console.log(connectionDetails);
});

错误信息:

Error: No stream features to proceed with
at Connection.onStanza (/Users/my-name/BeginXMPP/node_modules/node-xmpp-core/lib/Connection.js:363:17)
at StreamParser.<anonymous> (/Users/my-name/BeginXMPP/node_modules/node-xmpp- 
core/lib/Connection.js:231:10)
at StreamParser.emit (events.js:198:13)
at SaxLtx.<anonymous> (/Users/my-name/BeginXMPP/node_modules/@xmpp/streamparser/index.js:69:14)
at SaxLtx.emit (events.js:198:13)
at SaxLtx._handleTagOpening (/Users/my-name/BeginXMPP/node_modules/ltx/lib/parsers/ltx.js:40:12)
at SaxLtx.write (/Users/my-name/BeginXMPP/node_modules/ltx/lib/parsers/ltx.js:159:18)
at StreamParser.write (/Users/my-name/BeginXMPP/node_modules/@xmpp/streamparser/index.js:134:17)
at Connection.onData (/Users/my-name/BeginXMPP/node_modules/node-xmpp-core/lib/Connection.js:310:17)
at Socket.emit (events.js:203:15)
Emitted 'error' event at:
at Client.<anonymous> (/Users/my-name/BeginXMPP/node_modules/node-xmpp-client/lib/Client.js:158:23)
at Connection.emit (events.js:203:15)
4

0 回答 0