BotFramework-Emulator icon indicating copy to clipboard operation
BotFramework-Emulator copied to clipboard

Cannot send messages using Microsoft Bot Emulator

Open Saikat786 opened this issue 9 years ago • 10 comments

Version 3.5.29

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:3979/api/messages, whenever inputting a string, the message is not sent.

What appears in the log is: [04:31:00] Emulator listening on http://[::]:55944  [04:31:01] Failed to start ngrok: undefined  [04:31:01] ngrok may already be running in a different process. ngrok's free tier allows only one instance at a time per host.  [04:31:01] Checking for new version...  [04:31:02] Application is up to date.

Saikat786 avatar Jun 12 '17 08:06 Saikat786

When you try to send your bot a message, does it generate an entry in the emulator's log?

eanders-ms avatar Jun 12 '17 17:06 eanders-ms

Closing due to inactivity. Reply here if you still need assistance and I will reopen.

eanders-ms avatar Jul 31 '17 14:07 eanders-ms

yes it does [generate an entry in the log]. I am facing the same issue. Ngrok was not running in an other instance as far as I can say that, based on the taskmanager. I also checked it's version which was higher than 1.2.1 (as some people suggested it might be connected to that). Also, I am facing this issue when running botframework samples. When I run ngrok standalone, then it is able to connect to ports via console. Very strange. I tried reinstalling the botframework emulator and ngrok and then ran the emulator as admin, but still the problem exists. Do you have any ideas what else might I try?

fr6087 avatar Sep 27 '17 07:09 fr6087

@fr6087 Can you tell me about your setup:

  • Are you running your bot locally (on the same machine as the emulator)?
  • Are you running with or without credentials?
  • Are any errors showing up in your emulator log?

Following the steps outlined in the Authentication Troubleshooting Guide is a great way to ensure your configuration is setup correctly. https://docs.microsoft.com/en-us/bot-framework/troubleshoot-authentication-problems

eanders-ms avatar Sep 27 '17 17:09 eanders-ms

Yes, I'm running under http://localhost:3979/api/messages without security enabled that is I checked that there are no values in the Webconfig-file for appsettings-credentials
As I said before, the error I get initially is ngrok undefined (though I downloaded ngrok separate and pointed to the .exe in App Settings) I read that it is not needed for local Debugging so I checked "disable for local addresses".
Let me show you a picture... image

fr6087 avatar Sep 29 '17 09:09 fr6087

[14:15:13] Checking for new version... [14:15:14] Failed to start ngrok: undefined [14:15:14] ngrok may already be running in a different process. ngrok's free tier allows only one instance at a time per host.

Hi, I am also facing this issue while using Bot framework channel Emulator and ngrok tunneling software. I gave the proper path in App settings of emulator for ngrok.exe and had also launched emulator as administrator. But end up in above error. If anyone can help in this.

Thanks !

Tushti02 avatar Oct 24 '17 09:10 Tushti02

I found out that the emulator was connecting to the proxy of my company instead of dissolving localhost. I don't know all the steps because a collegue was helping me with this. But we used Postman (that's a Google Chrome Extension) for monitoring POST/GET traffic and then modified proxy settings in Postman. It resulted in a workaround with copy-pasting JSON from Botframework Emulator to Postman. Workaround worked, Bot answered. But in the emulator itself, I saw no possibility to adapt proxy settings and Botframework Emulator is still not working whenever I am using the company network.

fr6087 avatar Oct 26 '17 13:10 fr6087

Yep I think we need to bypass the configured proxy for localhost addresses. Thanks for taking the time to report this.

eanders-ms avatar Oct 27 '17 04:10 eanders-ms

I have a similar issue: I get a POST 202 conversation update. But no reply from the bot. It is working fine in web chat, though.

webchat

ngrok

after I added my authtoken, It shows this..

image and, this is what my ngrok status shows: image I'm behind a corporate proxy. The local version works justfine. any idea, what is being missed?

srichakradhar avatar Nov 22 '17 02:11 srichakradhar

well, i fixed it using so called microsoft solution i.e. "uninstall the emulator and install again". and i had SSL on localhost which was also causing issues. So, i removed SSL from localhost.

jawand avatar Nov 12 '18 11:11 jawand