Skip to content

使用自建应用机器人发送消息出现偶发性错误【Invalid access token for authorization】 #111

@abstain23

Description

@abstain23
const feishuClient = new lark.Client({
    appId: process.env.APP_ID || '',
    appSecret: process.env.APP_SECRET || '',
    disableTokenCache: false,
    loggerLevel: lark.LoggerLevel.error
  })

feishuClient.im.message.create ...

appid 和 appSecret是在环境变量传过去的,能保证是存在的,并且上一条消息是发送成功的,下一条就出现发送失败,token鉴权失败问题
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions