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

Always got error from Bot emulator

Open andy51002000 opened this issue 9 years ago • 10 comments

I built up a Hello World!Bot on my IIS server. But I always got error "Error: The bot's MSA appId or passsword is incorrect from bot emulator. " even if appId and passsword are right.

andy51002000 avatar Feb 17 '17 10:02 andy51002000

Hi @andy51002000 Please make sure you're using an appId and password generated from the Microsoft Application Portal: https://apps.dev.microsoft.com/. It doesn't work with arbitrary values.

Take a look at this auth toubleshooting guide: https://docs.botframework.com/en-us/support/troubleshooting-bot-framework-authentication/

eanders-ms avatar Feb 17 '17 21:02 eanders-ms

1.The ID & Password are both generated from MS. And bot's ID\Password are same as Emulator's.

  1. I followed the troubleshooting guide and tested "Step 1: Connect without a password on localhost".
  • Blanked out ID and Password in my Web.config
  • Tested the Bot Emulator with empty ID and Password.
  • My bot url endpoint is correct and end with/api/messages However, I still experienced "Error: The bot's MSA appId or passsword is incorrect from bot emulator. " emulator web_config mybotweb

andy51002000 avatar Feb 17 '17 23:02 andy51002000

Hi @eanders-MS could you give some advise

andy51002000 avatar Feb 19 '17 15:02 andy51002000

It seems your bot is still running with credentials specified. I wonder, do you have build-specific web.config translations? They would appear underneath web.config, and look like web.debug.config, web.release.config, etc. If so, do they contain MSA credentials.

eanders-ms avatar Feb 21 '17 17:02 eanders-ms

I don't have any build-specific web.config translations. It's a pretty simple Hello World! Bot.

I downloaded Bot template. Compiled template with visual studio 2015. And then published to my windows server 2012. Launched emulator and saw error log "Error: The bot's MSA appId or password is incorrect from bot emulator. " And we found if published to windows 7, the emulator is work.

We prefer to use windows server 2012 as Bot service's host, if possible. Please give me some advice.

andy51002000 avatar Feb 22 '17 10:02 andy51002000

Hi @andy51002000 - can you try removing the app settings altogether instead of blanking them out? Just a thought...

danmarshall avatar Feb 27 '17 19:02 danmarshall

Hi @danmarshall - I tried but it still doesn't work.

andy51002000 avatar Mar 03 '17 09:03 andy51002000

Hi @andy51002000, Some users have been able to solve this kind of issue by updating their Bot Application Project template. See this issue: https://github.com/Microsoft/BotFramework-Emulator/issues/165

eanders-ms avatar Apr 17 '17 15:04 eanders-ms

Closing out this issue. @andy51002000, if you're still having a problem, drop a note here and we'll reopen the issue.

eanders-ms avatar May 24 '17 03:05 eanders-ms

issue still persists.

ramicodes avatar Feb 28 '18 08:02 ramicodes