无法调用 Firebase 托管背后的 Google Cloud Function - 状态 503 但状态页面上没有指示

Cannot call Google Cloud Function behind Firebase Hosting - Status 503 but no indication on status pages

我在通过 Firebase 托管访问 exposed 的 Google 云 HTTP 函数时遇到问题。我假设 CDN 有问题,因为功能没有改变,但我在状态页面上没有看到任何内容:

直接访问函数,即不通过 Firebase 托管而是使用 https://{region}{app}.cloudfunctions.net/{name} URL 似乎 运行 遇到同样的问题。

最初,我在将近两分钟后收到了此回复

content-type: text/plain;charset=US-ASCII
date: Tue, 06 Oct 2020 14:10:01 GMT
fastly-host: cache-hhn4049-HHN
server: Varnish
status: 503

Timed out while waiting on cache-hhn4049-HHN

这似乎表明 Fastly 存在问题(列为 subprocessor for Firebase), but their status page 显示一切正常。

一段时间后,我似乎在 15-30 秒超时后收到另一方的回复:

(为了便于阅读,删除了 HTML)

accept-ranges: bytes
content-length: 323
content-type: text/html; charset=UTF-8
date: Tue, 06 Oct 2020 14:17:22 GMT
fastly-restarts: 1
server: Google Frontend
status: 500
vary: x-fh-requested-host, accept-encoding
x-cache: MISS
x-cache-hits: 0
x-cloud-trace-context: 234db5d36bf48ff0a385ed838e14676c
x-served-by: cache-hhn4049-HHN
x-timer: S1601993817.546227,VS0,VE25795

Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.

当然,等待 30 秒也无济于事。

在云函数日志中,我确实看到一些请求正常执行需要 400-500 毫秒。我可以看到一个 'crash' 在 54 毫秒内完成,两个较长的执行时间约为 20 秒,还有一个超时(60 秒)。该函数用作自定义身份验证过程的一部分,因此通常会有很多请求。

有什么建议可以帮助我了解问题所在吗?还是可以实际告诉我在哪里可以查找问题的状态页面?

firebaser 在这里

在过去一个小时左右的时间里,部署 Cloud Functions 确实存在问题。我们正在努力将问题添加到 Firebase 状态页面。

现在应该基本恢复正常了。有关当前状态,请参阅 Google Cloud dashboard 顶部的黄色横幅。如果没有黄色横幅,则问题可能已完全解决。