Skip to content

adapter-lark:Error: Bad Request #370

Closed

Description

@magisk317

刚开始是权限问题:

2025-09-04 12:17:20 [W] app Error: Bad Request (Lark error code 99991672: Access denied. One of the following scopes is required: [contact:user.employee_id:readonly])
                            at [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:340:23)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async impl (/koishi/node_modules/@satorijs/adapter-lark/lib/index.cjs:1375:30)
                            at async LarkMessageEncoder.post (/koishi/node_modules/@satorijs/adapter-lark/lib/index.cjs:811:16)
                            at async LarkMessageEncoder.flush (/koishi/node_modules/@satorijs/adapter-lark/lib/index.cjs:850:7)
                            at async LarkMessageEncoder.send (/koishi/node_modules/@satorijs/core/lib/index.cjs:755:5)
                            at async Proxy.sendMessage (/koishi/node_modules/@satorijs/core/lib/index.cjs:487:22)

开通之后另一个报错:

2025-09-04 12:25:22 [W] app Error: Bad Request (Lark error code 99992360: The request you send is not a valid {user_id} or not exists, and the example value is {64*******87}. Invalid ids: [41*****16] . Please see field_violations for details and refer to API documentation to correct accordingly and resubmit)
                            at [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:340:23)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async impl (/koishi/node_modules/@satorijs/adapter-lark/lib/index.cjs:1375:30)
                            at async LarkMessageEncoder.post (/koishi/node_modules/@satorijs/adapter-lark/lib/index.cjs:811:16)
                            at async LarkMessageEncoder.flush (/koishi/node_modules/@satorijs/adapter-lark/lib/index.cjs:850:7)
                            at async LarkMessageEncoder.send (/koishi/node_modules/@satorijs/core/lib/index.cjs:755:5)
                            at async Proxy.sendMessage (/koishi/node_modules/@satorijs/core/lib/index.cjs:487:22)

Activity

  1. shigma commented on Sep 4, 2025

    @shigma
    Contributor

    https://open.feishu.cn/search?from=header&page=1&pageSize=10&q=99992360&topicFilter=

    你的 API 调用有误,请参考 error message 中的提示进行处理。

  2. magisk317 commented on Sep 5, 2025

    @magisk317
    Author

    https://open.feishu.cn/search?from=header&page=1&pageSize=10&q=99992360&topicFilter=

    你的 API 调用有误,请参考 error message 中的提示进行处理。

    啊,这个api调用,是谁调用,adapter还是插件?我应该没调用过。。。一时之间不知道应该改哪里🤣

  3. shigma commented on Sep 5, 2025

    @shigma
    Contributor

    感觉是某个插件调用的,如果不好确定范围可以列一下插件列表看看?(我还以为是你写的插件)

  4. locked and limited conversation to collaborators on Dec 28, 2025
  5. converted this issue into a discussion #380 on Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions