收藏
回答

调用 miniprogram-mp-ci 管理成员返回"errCode":-1 怎么排查是什么问题?

const project = new miniprogramCi.Project({
  appid: appId,
  type: 'miniProgram',
  projectPath: './src/config/mp-directory/standard',
  privateKeyPath: './src/config/mp-directory/standard/private.key',
})


try {
  const robot = ~~(Math.random() * 29) + 1
  const result = await miniprogramCi.manageProjectMember({
    project,
    action: action as any,
    robot: robot,
    member_list: wechatIdArr.map(e => ({
      wechatid: e,
      remark: ""
    }))
  })
  Logger.log(`自动化结果${robot}: ${JSON.stringify(result)}`)
  return {
    content: [
      {
        type: "text",
        text: JSON.stringify(result)
      },
    ],
  };
} catch (error) {
  Logger.error(`Error manageProjectMember:`, error);
  return {
    isError: true,
    content: [{ type: "text", text: `Error manageProjectMember: ${error instanceof Error ? error.message : JSON.stringify(error)}` }],
  };
  }


打印结果


没有开启IP白名单保护,这是什么原因导致的请求失败

回答关注问题邀请回答
收藏

1 个回答

  • august
    august
    2025-11-03

    这里漏消息了,现在重试一下看是否已解决?

    2025-11-03
    有用
    回复
登录 后发表内容