【问题标题】:Cloud Build Trigger returns 14 UNAVAILABLE: 502:Bad GatewayCloud Build Trigger 返回 14 UNAVAILABLE: 502:Bad Gateway
【发布时间】:2020-06-03 19:38:14
【问题描述】:

使用 JavaScript 库 NodeJS-CloudBuild,我们已经能够编写一个 Cloud Function,它可以在需要时触发新的 Cloud Build。

它已经稳定了几个月,但是从星期一开始,每当我们调用该函数时,我们都会收到一个不一致的错误: 错误:14 不可用:502:网关错误

代码示例非常简单,直接取自存储库,但带有我们的变量。

  // Creates a client
  const cb = new CloudBuildClient();

  // Starts a build against the branch provided.
  const [resp] = await cb.runBuildTrigger({
    projectId,
    triggerId,
    source: {
      projectId,
      dir: './',
      branchName,
    },
  });
  console.info(`triggered build for ${triggerId}`);

我不确定最近发生了什么变化导致这些返回错误。从云构建仪表板执行“手动”触发器时,它也可以正常工作。

【问题讨论】:

标签: javascript google-cloud-platform google-cloud-functions google-cloud-build


【解决方案1】:

已解决upstream。这不是图书馆的错。

【讨论】:

    猜你喜欢
    • 2020-06-14
    • 2021-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-24
    • 2019-09-15
    • 2020-05-09
    • 1970-01-01
    相关资源
    最近更新 更多