google-cloud-platform - Cloud Run 已完成,但 Cloud Scheduler 认为作业失败

标签 google-cloud-platform google-cloud-run google-cloud-scheduler

我有一个 Cloud Run 服务设置,并且有一个调用该服务上端点的 Cloud Scheduler 任务。当任务完成时(http 处理程序返回),我看到以下错误:

The request failed because the HTTP connection to the instance had an error.

但是,实际处理程序返回 HTTP 200 并且成功存在。有谁知道这个错误是什么意思以及在什么情况下会出现?

我还附上了日志的屏幕截图。

Imgur

最佳答案

您的工作时间是否超过 120 秒?我遇到了同样的问题,并发现 13 之前的节点版本有 120 秒的 server.timeout 限制。我在 docker 上安装了节点 13,问题就消失了。

关于google-cloud-platform - Cloud Run 已完成,但 Cloud Scheduler 认为作业失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58223827/

相关文章:

google-cloud-platform - Dataprep 与 Dataflow 与 Dataproc

javascript - Firebase 云功能在部署时未更新 - 仍在提供旧版本的功能

google-app-engine - 何时使用 Google App Engine Flex 与 Google Cloud Run

node.js - Google Cloud Functions 与 socket.io

python - 运行 shutdown 的 Cloud Run Flask API 容器进入休眠循环

firebase - 无法在 Firebase 云函数中部署 PubSub 函数

android - cloud.speech.v1.StreamingRecognizeResponse - 错误 : an enum switch case label must be the unqualified name of an enumeration constant

python - 如何在 python 中获取当前 gcloud 配置用户/服务帐户的 id token

python-3.x - 无法在云函数中使用 gcp 云调度程序的 json 主体作为参数值?

python - 如何在谷歌云调度程序(Python)中定义的谷歌云函数中使用主体参数?