gpt4 book ai didi

Azure Bot Framework 模拟器 + Ngrok - 错误 : Failed to spawn ngrok

转载 作者:行者123 更新时间:2023-12-02 05:56:44 55 4
gpt4 key购买 nike

我似乎无法让 Azure Bot Framework Emulator 与 Ngork 一起使用。

环境:

  • Ubuntu 22.04
  • Python3

我遵循的步骤:

{
"error_code": 102,
"status_code": 400,
"msg": "invalid tunnel configuration",
"details":
{
"err": "yaml: unmarshal errors:\n line 1: field region not found in type config.HTTPv2Tunnel\n line 1: field path not found in type config.HTTPv2Tunnel",
},
}

enter image description here

<小时/>

编辑 1:遵循 @sairamtadepalli-mt 的建议

如果我在配置中更改 Ngrok 的端口 (web_addr),我会收到一个新错误:

Connecting to bot on https://XXX.azurewebsites.net/api/messages
ngrok reconnected.
ngrok listening on http://localhost:36599
ngrok traffic inspector:
Will bypass ngrok for local addresses
Failed to spawn ngrok. Please go to the Ngrok Status Viewer and download the log file for a more detailed view of the error.
Error: The bot is remote, but the service URL is localhost. Without tunneling software you will not receive replies.
Connecting to bots hosted remotely
Configure ngrok
<小时/>

编辑 2:遵循 @sairamtadepalli-mt 的建议

这是我在状态查看器和控制台中看到的内容(仍然是与最初相同的错误......):

enter image description here

模拟器“Ngrok Status Viewer”中出现错误:看起来 ngrok 隧道已经不存在了。尝试重新连接到 Ngrok 或检查日志以获取错误的详细说明。

enter image description here

控制台错误:

Failed to spawn ngrok Error: {"error_code":102,"status_code":400,"msg":"invalid tunnel configuration","details":{"err":"yaml: unmarshal errors:\n  line 1: field region not found in type config.HTTPv2Tunnel\n  line 1: field path not found in type config.HTTPv2Tunnel"}}

at NgrokInstance.runTunnel (/tmp/.mount_BotFraqqaRh3/resources/app.asar/app/server/ngrok.js:257:17)
at async NgrokInstance.connect (/tmp/.mount_BotFraqqaRh3/resources/app.asar/app/server/ngrok.js:120:24)
at async /tmp/.mount_BotFraqqaRh3/resources/app.asar/app/server/ngrokService.js:165:15

<小时/>

最佳答案

我在 W10 PC 上使用 Ngrok v3 时遇到了与您相同的问题。我尝试过一些方法,例如使用 yaml 文件配置隧道,但没有成功。

最后,我通过此链接使用了 Ngrok 版本 2.3.40:ngrok releases

现在一切正常。 HTH

关于Azure Bot Framework 模拟器 + Ngrok - 错误 : Failed to spawn ngrok,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72318700/

55 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com