发生API错误发生了:使用Slack Postmessage API将消息发送给Slack用户时,Account_Inactive

发布于 2025-02-13 11:20:38 字数 354 浏览 1 评论 0 原文

我正在构建一个Slack应用程序,该应用程序将向用户发送消息。最近,我遇到了一个错误,上面写着“ Account_Inactive ”。 Slack文档描述了以下错误,如下所示,

Authentication token is for a deleted user or workspace when using a bot token.

我尝试使用“ chat.postmessage”使用机器人令牌“ xoxb-token”向停用的Slack用户发送消息,并且API始终返回成功。如果有人能帮助我解决此错误,那就太好了。

PS:我不使用boltjs,我直接使用JS SDK。

I am building a slack app that would send messages to user. Recently I am getting an error which says "account_inactive". The slack documentation describes the following error as below

Authentication token is for a deleted user or workspace when using a bot token.

I tried sending a message to a deactivated slack user using "chat.postMessage" using a bot token "xoxb-token" and the API returns success all the time. It would be great if anyone can help me with what causes this error.

PS: I am not using BoltJS, I am using he JS SDK directly.

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

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

发布评论

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

评论(2

南渊 2025-02-20 11:20:38

听起来您的应用程序已从工作区卸载。您可以尝试调用 auth.test.test.test 是否查看是否是令牌仍然有效。

Sounds like your app has been uninstalled from the workspace. You can try calling auth.test to see if the token is still valid.

陌伤ぢ 2025-02-20 11:20:38

最近我遇到了这个错误。

就我而言,原因是,当用户帐户停用时,安装了一些应用程序也将被停用。如果是您的情况,那么有权管理应用程序的成员将需要重新激活它。

更多信息可以在

I've come across this error recently.

In my case, the cause was that when a user account is deactivated, some apps they've installed are also deactivated. If this is the case for you, a member with the permission to manage apps will need to reactivate it.

More information can be found in this Slack help article.

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