Skip to content

飞书 API 请求失败: request trigger frequency limit #121

@silvbb

Description

@silvbb

你当前使用的Elog版本

0.14.7

Elog配置文件

module.exports = {
  write: {
    platform: 'feishu',
    feishu: {
      type: 'space', // 不填默认为从我的空间下载
      folderToken: process.env.FEISHU_FOLDER_TOKEN,
      appId: process.env.FEISHU_APP_ID,
      appSecret: process.env.FEISHU_APP_SECRET,
    },
  },
  deploy: {
    platform: 'local',
    local: {
      outputDir: './docs/feishu/docs',
      filename: 'urlname',
      format: 'markdown',
      catalog: true,// 按照文件夹生成文档和目录
      frontMatter: {
        enable: true,
      }
    }
  },
  image: {
    enable: true,
    platform: 'local',//cos
    local: {
      outputDir: './docs/feishu/asset/images',
      prefixKey: '/feishu/asset/images',
    },
    cos: {
      secretId: process.env.COS_SECRET_ID,
      secretKey: process.env.COS_SECRET_KEY,
      bucket: process.env.COS_IMAGE_BUCKET,
      region: process.env.COS_IMAGE_REGION,
      host: process.env.COS_HOST,
      prefixKey: 'jxdocs-images',
      secretExt: '', // 可选
    }
  },
}

发生了什么?

3月24日突然无法更新文档:elog sync -c elog.config.feishu.cjs -e .elog.env -a docs/feishu/elog.cache.feishu.json,不知道是不是飞书升级了API频率限制。
尝试加入:
// 更严格的请求限制配置
requestLimit: {
delay: 5000, // 增加到 5 秒间隔
maxRetry: 5, // 增加重试次数
timeout: 30000, // 增加超时时间到 30 秒
concurrent: 1, // 保持单一并发
retryDelay: 10000, // 重试等待增加到 10 秒
maxRequests: 10, // 每批次最大请求数
batchDelay: 60000 // 批次间等待 1 分钟
},
都不行。

Elog错误日志

飞书 API 请求失败: request trigger frequency limit

附加信息

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions