Javascript 错误:发生API错误:验证无效

Javascript 错误:发生API错误:验证无效,javascript,node.js,slack-api,Javascript,Node.js,Slack Api,嗨,我正在写我的slack机器人,我想在选择后,将prev消息更改为一个新变量,这是我的操作,在选择后触发: slackInteractions.action({ type: "static_select" }, (payload, res) => { console.log(payload); web.chat .update({ token: slackSigningSecret, channel: payload.container.chann

嗨,我正在写我的slack机器人,我想在选择后,将prev消息更改为一个新变量,这是我的操作,在选择后触发:

slackInteractions.action({ type: "static_select" }, (payload, res) => {
  console.log(payload);
  web.chat
    .update({
      token: slackSigningSecret,
      channel: payload.container.channel_id,
      ts: payload.container.message_ts,
      as_user: true,
      text: "Hello World"
    })
    .catch(err => {
      console.log(err);
    });
});
我得到了一个错误:

Error: An API error occurred: invalid_auth
    at Object.platformErrorFromResult (/home/codex/Documents/dan-bot/node_modules/@slack/web-api/dist/errors.js:50:33)
    at WebClient.apiCall (/home/codex/Documents/dan-bot/node_modules/@slack/web-api/dist/WebClient.js:485:28)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'slack_webapi_platform_error',
  data: { ok: false, error: 'invalid_auth', response_metadata: {} }
}
这是有效载荷:

{
  type: 'block_actions',
  team: { id: '//', domain: '*** },
  user: {
    id: 'U010Q9X59QT',
    username: '**',
    name: '***',
    team_id: '//'
  },
  api_app_id: '///',
  token: '***',
  container: {
    type: 'message',
    message_ts: '1585662258.008100',
    channel_id: '****',
    is_ephemeral: true
  },
  trigger_id: '1038328652789.1035324920279.b84d3403b8e44ab0cd53c997ba8b4c72',
  channel: { id: '***', name: 'directmessage' },
  response_url: 'https://hooks.slack.com/actions/T01119JT287/1040413692903/6TWTQqXhcp453TPREb7uRcPn',
  actions: [
    {
      type: 'static_select',
      action_id: 'wkR',
      block_id: 'LM9',
      selected_option: [Object],
      placeholder: [Object],
      action_ts: '1585662260.040519'
    }
  ]
}
作为标记,我使用我的主slack标记,使用这个标记,我尝试将我看到的变体块更改为另一个块,此时尝试更改为字符串“Hello world”
谢谢转发

回顾他们的文档,该令牌应该是您在Oauth&Permissions选项卡上看到的访问令牌,它以
xoxb
xoxp
开头。请在此处查看有关其Oauth文档的更多信息:

回顾其文档,该令牌应该是您在Oauth&Permissions选项卡上看到的访问令牌,它以
xoxb
xoxp
开头。请在此处查看有关其Oauth文档的更多信息: