Slack api files.upload错误:not_in_channel

发布于 2025-01-27 01:11:22 字数 431 浏览 3 评论 0原文

尝试从doc上上传从构​​建服务器上传: https://api.slack.com /methods/files.upload

也使用bot令牌: https://api.slack。 com/authentication/basics

我遇到了错误:{“ ok”:false,“ error”:“ not_in_channel”}

感谢任何帮助和指针!

trying to upload a file from a build server following the doc: https://api.slack.com/methods/files.upload

And also using bot token: https://api.slack.com/authentication/basics

I am getting the error: {"ok":false,"error":"not_in_channel"}

Appreciate any help and pointers!

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

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

发布评论

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

评论(1

给我一枪 2025-02-03 01:11:22

当使用bot oauth令牌并且机器人不在目标通道中时,就会发生此错误。

修复:

  • 进入目标频道
  • 类型/邀请@bot_name
  • 重试该请求

This error occurs when a bot oauth token is used and the bot isn't in the target channel(s).

To fix:

  • Go into target channel(s)
  • Type /invite @BOT_NAME
  • Retry the request
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文