question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot send messages from Microsoft Bot Framework

See original GitHub issue

Version 3.5.20

The emulator at first is supposed to return a response with the number of characters of a user input string. However even after using the default endpoint url which is http://localhost:3978/api/messages, whenever inputting a string, the message is not sent.

When accessing the app settings, the emulator port is modifiable. The emulator port was 9002 by default and even changing it to 9000 (which I remember seeing in some other posts) did not fix the issue.

What appears in the log is:-

Emulator listening on http://[::]:9002
failed to start ngrok: spawn D:\Downloads\Setup\ngrok-stable-windows-amd64\ngrok.
Click here to configure ngrok.
Checking for new verson...
Application is up to date.

http://stackoverflow.com/questions/40822507/cannot-send-messages-from-microsoft-bot-framework/40901454#40901454

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
res63661commented, Jul 27, 2017

In my emulator it was trying port 3978 but the default from my PROJECT was 3979. Notice the final digit is one off. I missed this for a minute or two. Also use “localhost” and not the default 127.0.0.1. This approach worked for me.

0reactions
ravidallicommented, Jan 24, 2018

Thanks, this resolved my issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I find out the reason I cannot send messages to my bot?
Go to the bot's App service in Azure portal and go to "App Service Logs" near the bottom of the left menu. Enable...
Read more >
Troubleshooting Azure Bot Service bots - Microsoft Learn
In the top menu bar, select Debug console. Then, in the drop-down menu, select CMD. · Run nslookup directline.botframework.com and check if the ......
Read more >
Cannot send messages using Microsoft Bot Emulator #226
It resulted in a workaround with copy-pasting JSON from Botframework Emulator to Postman. Workaround worked, Bot answered. But in the emulator ...
Read more >
Microsoft Bot Framework v4: Send proactive messages to ...
Microsoft Bot Framework v4: Send proactive messages to Teams channels and users. What is a Bot Framework Proactive message?
Read more >
How to properly send a greeting message and common ...
If you're using WebChat or directline, the bot's ConversationUpdate is sent when the conversation is created and the user sides' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found