发生API错误发生了:使用Slack Postmessage API将消息发送给Slack用户时,Account_Inactive
我正在构建一个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。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您的应用程序已从工作区卸载。您可以尝试调用
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.最近我遇到了这个错误。
就我而言,原因是,当用户帐户停用时,安装了一些应用程序也将被停用。如果是您的情况,那么有权管理应用程序的成员将需要重新激活它。
更多信息可以在。
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.