Bot platform emulator not working

I started looking into the bot framework last week and I decided to start with a default bot project that returns your input and its number of characters. But unfortunately I was not able to test the bot application in a bot emulator. He can't just submit my entry. It displays "failed to submit" whenever I forward the input. My endpoint address, which is http: // localhost: 3979 / api / messages / , is spelled correctly there. What could be wrong? I'm just a starter in botframe and bot building.

+2


source to share


3 answers


Since I don't know the exact code you are trying to execute, I would suggest a few re-checks.

Checkpoints:



  • Make sure you run the code in debug mode with any browser (Edge, chrome, explorer, etc.) and then run in the emulator.
  • Configure or link an emulator with ngrok. (Although not required when running locally, it can be resolved if the emulator is not working with firewall issues)
  • Please verify that the Microsoft App ID and Microsoft App password are the same in the emulator and Web.config file.
  • Try using an empty Microsoft App ID and Microsoft App password in the Web.config file and emulator.
  • Check if endpoints are the same in browser and emulator
  • If you encounter other errors like 401, 405, 500, please check the article .
  • If all the breakpoints are correct and you still face the problem when running the code in the emulator, there may be a problem with the code libraries or links. You can also check a working example .
+5


source


Check the visual studio .bot file. This is how it should be .......

    {
        "name": "EmulatorBot",
        "description": "",
        "services": [
            {
                "type": "endpoint",[enter image description here][1]
                "endpoint": "http://localhost:3978/api/messages",
                "name": "EmulatorBot20181123022900",
                "id": "25"
            }
        ],
        "padlock": "",
        "version": "2.0",
        "path": "C:\\Users\\suraj.tiwari\\Desktop\\Bot NK\\EmulatorBot\\EmulatorBot.bot",
        "overrides": null
    }

      



Add an endpoint for your bot

    Endpoint url : http://localhost:3978/api/messages
    Name : EmulatorBot20181123022900

      

0


source


"Make sure you run the code in debug mode in any browser (Edge, Chrome, Explorer, etc.) and then run it in the emulator."

How do we make the code to run in an edge?

0


source







All Articles