nickahgurl
nickahgurl

Reputation: 11

Unable to run local bot on Bot Framework emulator

i am new at using Bot Framework Emulator and trying to run Echo bot. I am successful running the bot locally. But when I try to use Bot Framework Emulator to test. It doesnt seem to be listening to the host and port i inputted. Any idea? thank you≥ running this on mac. visual studio 2019 emulator: 4.9.0-140906

[17:55:35]Connecting to bot on http://localhost:3978/api/messages
[17:55:35]Emulator listening on http://[::]:52655
[17:55:35]ngrok not configured (only needed when connecting to remotely hosted bots)
[17:55:35]Connecting to bots hosted remotely
[17:55:35]Edit ngrok settings
[17:55:35]Cannot post activity. Unauthorized.

Upvotes: 1

Views: 730

Answers (1)

bartbilliet
bartbilliet

Reputation: 127

Did you register a value for Microsoft App ID and Microsoft App password in the emulator settings? This setting is optional, however if you configured them in your appsettings.json you will need to provide the corresponding values also in the emulator.

For testing locally however, you can leave the MicrosoftAppId and MicrosoftAppPassword as blank in the appsettings.json.

Upvotes: 2

Related Questions