错误:ChatConnector:startConversation - 错误开始对话

时间:2017-02-20 17:40:01

标签: node.js bots skype botframework

我正在使用以下代码在无服务器/事件驱动架构中发送回复消息,我无法访问会话/对话框。这个工作正常,持续数周,直到上周五。消息被发送给skype用户,这仍然正常工作现在我看到400错误消息。我使用的是botbuilder@3.5.4和节点版本6.9.2。

ERROR: ChatConnector: startConversation - error starting conversation.
Error: Request to 'https://smba.trafficmanager.net/apis/v3/conversations' failed: [400] Bad Request

代码:

const connector = new botbuilder.ChatConnector({
    appId: "addId",
    appPassword: "pwd"
});

var bot = new botbuilder.UniversalBot(connector);
var property = {}; //extracted from the incoming message

var address = { 
  "channelId": property.value.channelId,
  "user": property.value.from,
  "bot": property.value.recipient,
  "serviceUrl": property.value.serviceUrl,
  "useAuth": true };

var msg = new botbuilder.Message();

msg.address(address)
       .text("hello");

bot.send(msg); 

0 个答案:

没有答案