Crash on sending .suggestedActions with builder.Message()
See original GitHub issueAdded task list based on below discussion.
- Update Documentation
- Place Feature request. Placed at #2798 on BotBuilder
Earlier similar issue: #10
Follow messages popsup in emulator:
[16:09:33] [err-client] Uncaught TypeError: Cannot read property 'length' of undefined /Applications/botframework-emulator.app/Contents/Resources/app/node_modules/rxjs/Subscriber.js 227 13 {}
Development environment:
- Run on localhost on
http://localhost:3978/api/messages
- Bot Framework Emulator version 3.5.29
"botbuilder": "^3.8.3"
- example: Add suggested actions to message on Bot Framework documentation
Code:
// LUIS intent declaration
const recognizer = new builder.LuisRecognizer(LuisRestFilterModelUrl);
const intents = new builder.IntentDialog({ 'recognizers': [recognizer] });
bot.dialog('/', intents);
intents.onBegin(
(session,args) => {
let msg = new builder.Message(session)
.text("Thank you. Short message.")
.suggestedActions([
builder.CardAction.imBack(session, "productId=1&color=green", "Green"),
builder.CardAction.imBack(session, "productId=1&color=blue", "Blue"),
builder.CardAction.imBack(session, "productId=1&color=red", "Red")
]);
session.send(msg);
}
);
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
IME may crash when processing a window message sent from ...
Describes a scenario where an Input Method Editor (IME) crashes while processing a window message sent from another thread, and where the ...
Read more >discord - Bot crashing immediately after sending an embed
EDIT: and as a side note the error originated where you called a new embed but didn't give any values for it. const...
Read more >Send Slack notification when Windows program crashes?
Yes, Slack can receive messages in real-time using the Incoming Webhooks. It only requires an internet access for your app or monitoring ...
Read more >Housing Prices are About to Crash (and Builders ... - YouTube
Building permits are crashing which is a leading indicator that the housing market is about to burst. While experts believe higher interest ...
Read more >Federal agency sends team to probe Tesla crash that killed 3
In addition to the specific crashes, NHTSA has investigations underway into ... A message was left Wednesday seeking comment from Tesla, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And it seems our documentation is incorrect on the page you referenced. We’ll get that updated. Thank you for the report!
Hi @ronak-itility, it seems your suggested actions payload isn’t getting constructed correctly. Try this slight variation (based on https://github.com/Microsoft/BotBuilder/tree/master/Node/examples/feature-suggestedActions):