【发布时间】:2017-12-13 15:37:16
【问题描述】:
在本地 ubuntu 16.04 服务器上运行的 bot 启动了 Nginx
var server = restify.createServer();
server.listen(process.env.port || process.env.PORT || 3978, function () {
console.log('%s listening to %s', server.name, server.url);
});
我可以使用 Channel Emulator 远程连接到服务,但是在聊天中发送消息时,restify 会出错:
WARN: ChatConnector: receive - emulator running without security enabled.
ChatConnector: message received.
The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace with your own storage.
**Error: connect ECONNREFUSED 127.0.0.1:55531**
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
有什么想法可以在 55531 上找到吗?
相同的代码在 Windows 机器上工作。
【问题讨论】:
标签: node.js botframework