我在Bot Framework上遇到了一個奇怪的錯誤。它總是說:POST在Bot Bot Channel Channel Emulator上連接ECONNFUSED
POST connect ECONNREFUSED 127.0.0.1:3978
這是機器人框架通道操作細節:
{
"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年使用機器人應用模板,並通過連接博特框架信道仿真器的API。我嘗試刷新模擬器以開始新消息,嘗試重新啓動網站項目,重建它,但它仍然是一樣的。我沒有更改Bot應用程序模板上的代碼。本地主機URL是正確的。我不知道爲什麼我遇到了錯誤,或者我錯過了什麼。
你正在使用什麼版本的BotBuilder?你知道哪個端口是你的本地主機監聽器嗎?你在模擬器中爲你的bot端點指定了什麼?是不是像http:// localhost:3978/api/messages? –