我正在开发一个简单的聊天界面,类似于Xamarin中的Bot Emulator,它与部署在我的localhost IIS服务器中的聊天机器人进行通信。我以我的工作this项目为基础。 Android APP可以与服务器建立连接,并且消息被正确发送到IIS服务器,但是当我从Bot Emulator控制台中的服务器获得响应时,我在通信期间将其用作调试,我收到如下错误:< / p>
{
"type": "message",
"timestamp": "2018-01-04T18:46:42.7490251Z",
"localTimestamp": "2018-01-04T18:46:42.7490251+00:00",
"serviceUrl": "https://*******.ngrok.io",
"channelId": "emulator",
"from": {
"id": "default-user"
},
"conversation": {
"id": "21dg57hma959"
},
"recipient": {
"id": "default-user",
"name": "User"
},
"membersAdded": [],
"membersRemoved": [],
"locale": "en-US",
"text": "Sorry, my bot code is having an issue.",
"attachments": [],
"entities": [],
"replyToId": "8idhmm3flgbi",
"id": null
}
说明:未找到对话。我不知道代码有什么问题,因为我在Visual Studio中没有出错。任何帮助将不胜感激:)
PS:在Xamarin中,我收到服务器的正确回复,但是就像每条消息建立新连接一样,因为我无法继续进行对话。