Bot框架模拟器无法正常工作 [英] Bot framework emulator not working

查看:108
本文介绍了Bot框架模拟器无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上周开始学习bot框架,并决定从默认的bot项目开始,该项目将返回您的输入及其字符数。但不幸的是,我无法在漫游器模拟器中测试该漫游器应用程序。它不能只是发送我的输入。每当我转发输入内容时,它就会显示无法发送。
我的端点URL是 http:// localhost:3979 / api / messages / 正确地写在那里。
可能出什么问题了?我只是机器人框架和机器人构建的入门者。

I started learning bot framework last week, and i decided to start off with the default bot project that returns your input and its number of character. But unfortunately, I couldn't test the bot application in bot emulator. It can't just send my input. It displays "couldn't send" whenever I forward an input. My endpoint url which is http://localhost:3979/api/messages/ is correctly written there. What could be wrong? I'm just a starter in bot framework and bot building.

推荐答案

由于我不知道您要执行的确切代码,因此我建议您注意以下几点:再次检查。

As I'm not aware of the exact code which you are trying to execute, I'd suggest few points to be checked again.

检查点:


  1. 确保在以下位置运行代码使用任何浏览器(Edge,chrome,explorer等)调试模式,然后在模拟器中运行。

  2. 配置模拟器或将其与ngrok链接。 (尽管在本地运行时不是必需的,但是如果模拟器不能解决防火墙问题,它可能会解决)

  3. 请检查模拟器中的Microsoft App ID和Microsoft App Password是否相同。 Web.config文件。

  4. 在Web.config文件和模拟器中尝试使用空白的Microsoft App ID和Microsoft App Password。

  5. 检查端点是否在浏览器和模拟器上是相同的

  6. 如果遇到其他错误,例如401、405、500,请选中此文章

  7. 如果所有检查点都正确,并且在模拟器中运行代码时仍然遇到问题,则代码或参考库可能存在问题。您还可以查看有效的示例

  1. Make sure you are running the code in debug mode with any browser (Edge, chrome, explorer etc.) and then run in the emulator.
  2. Configure or link the emulator with ngrok. (Though it is not required when running locally but it may resolve if the emulator is not working with firewall issues)
  3. Please check the Microsoft App Id and Microsoft App Password are the same in emulator and Web.config file.
  4. Try with blank Microsoft App Id and Microsoft App Password in both Web.config file and emulator.
  5. Check if the endpoints on the browser and emulator are the same
  6. If you are encountering other errors like 401, 405, 500 please check this article.
  7. In case if all the check points are right and you are still encountering an issue while running the code in emulator, there might be an issue with the code or reference libraries. You can also check the working example.

这篇关于Bot框架模拟器无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆