microsoft / BotBuilder-Samples

Welcome to the Bot Framework samples repository. Here you will find task-focused samples in C#, JavaScript/TypeScript, and Python to help you get started with the Bot Framework SDK!
https://github.com/Microsoft/botframework
MIT License
4.39k stars 4.88k forks source link

Internal Service Error through Emulator #3798

Closed anjika456 closed 2 years ago

anjika456 commented 2 years ago

Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Sample information

  1. Sample type: BotBuilder-Samples - samples
  2. Sample language: python
  3. Sample name: 02.echo-bot

Describe the bug

When I attempt to run the code in the emulator I receive an error

To Reproduce

Steps to reproduce the behavior:

  1. I installed the latest bot simulator using the link provided in the README, and downloaded this "BotFramework-Emulator-4.14.1-windows-setup.exe"
  2. Then I launched the emulator
  3. Pressed file -> open bot
  4. entered the url given "http://localhost:3978/api/messages"
  5. typed in "hello bot"
  6. received a "500: Internal Service Errors"

Expected behavior

I expected the bot to say "hello bot" back to me as I picked the echo version

Screenshots

error4

Additional context

This is my first time reporting an issue so please let me know if I needed to add any other details! Thanks!

breakingram commented 2 years ago

Hi @anjika456,

I'm not able to reproduce this issue using python sample 02.echo-bot.

image

#

I was able to run the bot by following instructions here https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/python/02.echo-bot#readme

What steps did you take to run the bot?

anjika456 commented 2 years ago

I used the exact steps on that page under Testing the Bot using bot framework emulator...could I have downloaded the wrong emulator, I downloaded the windows setup emulator

anjika456 commented 2 years ago

In the other picture I have above I also never get a "Hello and Welcome" from the echo bot...I also see that your ngrok is configured but mine is not...so maybe that has something to do with it

breakingram commented 2 years ago

Hi @anjika456,

I'm using Emulator v 4.14.1 as well. Not sure why it's not working for you.

Could you please configure Ngrok in Emulator settings using the below link instructions and try again? https://github.com/Microsoft/BotFramework-Emulator/wiki/Tunneling-(ngrok)

anjika456 commented 2 years ago

ngrok

So I configured ngrok but still no "Hello and Welcome" message...

breakingram commented 2 years ago

@anjika456, what command did you execute to run the bot on localhost?

breakingram commented 2 years ago

@anjika456, I'm referring to the 02.echo-bot it self, not Emulator.

How did you run the bot? ex: python app.py ? After you send the message hello, is there any exception message in the same terminal window you ran than bot?

breakingram commented 2 years ago

@anjika456,

For example; here are the steps I took to run the echo bo:

  1. Cloned BotBuilder-Samples onto my local machine
  2. Navigated to echo bot's root directory at
    • botbuilder-samples/samples/python/02.echo-bot/
  3. Created virtual environment by executing: python -m venv env
  4. Activated virtual environment by running: env\Scripts\Activate.ps1 in Powershell
  5. Installed dependency packages by running: pip install -r requirements.txt
  6. Ran the bot by executing this command in powershell: python app.py

After running command in step 6, in powershell it displays Running on http://localhost:3978 image

anjika456 commented 2 years ago

I think the steps I was taking incorrectly was running it on my local machine, it is working now I had to download these after I was receiving an error and now it is working in the emulator. Thank you for the help! botframework-connector

botbuilder-core

botbuilder-schema