我在Bot Framework上遇到了一个奇怪的错误。它总是说:
POST connect ECONNREFUSED 127.0.0.1:3978
这是Bot框架频道操作员的详细信息:
{
"type": "conversationUpdate",
"membersAdded": [
{
"id": "default-bot",
"name": "Bot"
}
],
"id": "1dhnjafnclhfeml51c",
"channelId": "emulator",
"timestamp": "2017-04-22T03:56:06.215Z",
"localTimestamp": "2017-04-22T11:56:06+08:00",
"recipient": {
"id": "default-bot",
"name": "Bot"
},
"conversation": {
"id": "a1376jghbggg6a5hjc"
},
"from": {
"id": "default-user",
"name": "User"
},
"serviceUrl": "http://localhost:51293"
}
我正在使用Visual Studio 2017使用Bot应用程序模板并通过Bot Framework Channel Emulator连接API。我尝试刷新模拟器以启动新消息,尝试重新启动网站项目,重建它,但它仍然是相同的。我没有更改Bot应用程序模板上的代码。 localhost URL是正确的。我不确定为什么我遇到错误或者我错过了什么。
如果你在http://
上运行并检查正确的端口,请使用https://
而不是localhost
。它是我的版本中的3979
,而模拟器默认使用3978
。