“错误405方法不允许”尝试使用ngrok作为Slack请求URL

发布于 2025-02-01 19:46:04 字数 402 浏览 4 评论 0原文

我一直在尝试制作一个Slack Bolt应用程序,但是使用套接字模式继续遇到问题。我研究关闭套接字模式,并使用请求URL,但是NGROK,VORTEX和其他用于处理HTTP请求的服务似乎都使Slack SERD SERD SERN dearlification发送的挑战参数失败。错误消息是“您的URL没有响应挑战参数的值”。在NGrok上,它只是说“错误405方法不允许”。我想知道是否有人知道为什么会发生这种情况或可以替代Ngrok,这将为我提供工作请求URL。另外,如果您还知道在Slack应用处于套接字模式时发送HTTP POST请求的方法,请随时响应。 Slack Events中的错误图像页面

I've been trying to make a slack Bolt App, but keep running into problems using socket mode. I looked into turning off socket mode and instead using a request url, but Ngrok, Vortex, and other services made to handle HTTP requests all seem to fail the challenge parameter sent by slack for verification. The error message is "Your URL didn't respond with the value of the challenge parameter". On ngrok, it just says "Error 405 Method Not Allowed". I was wondering if anyone knew why this occurred or had an alternative to ngrok that would provide me with a working Request URL. Alternatively if you also know of a way to send HTTP POST request while slack app is in socket mode, feel free to respond as well.
Image of error from Slack Events page

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

命比纸薄 2025-02-08 19:46:04

添加/slack/events在NGROK链接后,它起作用(我假设Slack Bolt应用仅适用于特定请求的默认侦听器)

add /slack/events after the ngrok link, then it works (I assume the slack bolt app has default listeners only for the specific requests)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文