Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用节点xmpp客户端无法继续使用流功能_Javascript_Node.js_Linux_Xmpp_Node Xmpp - Fatal编程技术网

Javascript 使用节点xmpp客户端无法继续使用流功能

Javascript 使用节点xmpp客户端无法继续使用流功能,javascript,node.js,linux,xmpp,node-xmpp,Javascript,Node.js,Linux,Xmpp,Node Xmpp,我已经在ubuntu AWS服务器上安装了prosody。我曾尝试使用Adium客户端和swift,但在标题中指出了相同的错误。我尝试使用节点xmpp客户端创建客户端,但出现了相同的错误 节点XMPP客户端代码: const Client = require('node-xmpp-client'); const options = { jid: 'test@ec2-18-222-249-134.us-east-2.compute.amazonaws.com', p

我已经在ubuntu AWS服务器上安装了prosody。我曾尝试使用Adium客户端和swift,但在标题中指出了相同的错误。我尝试使用节点xmpp客户端创建客户端,但出现了相同的错误

节点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)
错误:没有要继续的流功能
在Connection.onStanza(/Users/my name/BeginXMPP/node_modules/node xmpp core/lib/Connection.js:363:17)
在StreamParser。(/Users/my name/BeginXMPP/node_modules/node xmpp-
core/lib/Connection.js:231:10)
在StreamParser.emit(events.js:198:13)
在SaxLtx。(/Users/my name/BeginXMPP/node_modules/@xmpp/streamparser/index.js:69:14)
在SaxLtx.emit(events.js:198:13)
在SaxLtx.\u handleTagOpening(/Users/my name/BeginXMPP/node\u modules/ltx/lib/parsers/ltx.js:40:12)
在SaxLtx.write(/Users/my name/BeginXMPP/node_modules/ltx/lib/parsers/ltx.js:159:18)
在StreamParser.write(/Users/my name/BeginXMPP/node_modules/@xmpp/StreamParser/index.js:134:17)
在Connection.onData(/Users/my name/BeginXMPP/node_modules/node xmpp core/lib/Connection.js:310:17)
在Socket.emit(events.js:203:15)
在以下位置发出“错误”事件:
在客户端。(/Users/my name/BeginXMPP/node_modules/node xmpp client/lib/client.js:158:23)
在Connection.emit(events.js:203:15)

如果多个不同的客户端无法连接,那么问题不可能出现在另一个客户端上-您可能配置错误prosody@Bravo我想出来了。我的letsencrypt证书未配置如果多个不同的客户端无法连接,那么问题不可能出现在另一个客户端上-您可能配置错误prosody@Bravo我想出来了。我的letsencrypt证书未配置