I can verify that the messages are going to the bot, but when the bot tries to return something. it fails, is there a specific version of bot chat I should use?
<script src="https://hbs.azureedge.net/public-websites/webchat/botchat.js"></script>
const params = BotChat.queryParams(location.search);
BotChat.App({
directLine: {
secret: '',
token: '',
domain: params['domain'],
webSocket: false // defaults to true
}
// sendTyping: true, // defaults to false. set to true to send 'typing' activities to bot (and other users) when user is typing
}, botContainer);
Error in console:
Uncaught TypeError: Cannot read property 'name' of undefined
at t.render (botchat.js:20)
at Sn (botchat.js:20)
at Cn (botchat.js:20)
at An (botchat.js:20)
at Un (botchat.js:20)
at qn (botchat.js:20)
at er (botchat.js:20)
at Qn (botchat.js:20)
at $n (botchat.js:20)
at Object.enqueueSetState (botchat.js:28)
I can verify that the messages are going to the bot, but when the bot tries to return something. it fails, is there a specific version of bot chat I should use?
<script src="https://hbs.azureedge.net/public-websites/webchat/botchat.js"></script>const params = BotChat.queryParams(location.search);
BotChat.App({
directLine: {
secret: '',
token: '',
domain: params['domain'],
webSocket: false // defaults to true
}
// sendTyping: true, // defaults to false. set to true to send 'typing' activities to bot (and other users) when user is typing
}, botContainer);
Error in console:
Uncaught TypeError: Cannot read property 'name' of undefined
at t.render (botchat.js:20)
at Sn (botchat.js:20)
at Cn (botchat.js:20)
at An (botchat.js:20)
at Un (botchat.js:20)
at qn (botchat.js:20)
at er (botchat.js:20)
at Qn (botchat.js:20)
at $n (botchat.js:20)
at Object.enqueueSetState (botchat.js:28)