无法调用 Firebase Hosting 背后的 Google Cloud Function - 状态 503,但状态页面上没有指示 [关闭]

2024-01-07

我在访问 Google Cloud HTTP 函数时遇到问题exposed https://firebase.google.com/docs/hosting/full-config#rewrite-functions通过 Firebase 托管。我认为 CDN 有问题,因为功能没有改变,但我在状态页面上没有看到任何内容:

  • https://status.firebase.google.com/ https://status.firebase.google.com/ - Hosting是绿色的
  • https://status.cloud.google.com/ https://status.cloud.google.com/ - 谷歌云功能是绿色的

直接访问该功能,即不通过 Firebase Hosting 而是使用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 有问题(列为Firebase 子处理器 https://firebase.google.com/terms/subprocessors),但是他们的状态页 https://status.fastly.com/显示一切正常运行。

一段时间后,我似乎在 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 毫秒。我可以看到一次“崩溃”在 54 毫秒内完成,两次较长的执行在 20 秒左右完成,一次超时(60 秒)。该函数用作自定义身份验证过程的一部分,因此通常会有很多请求。

有什么建议可以帮助我了解问题所在吗?或者一个可以真正告诉我在哪里可以查找问题的状态页面?


火力战士在这里

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

现在应该大部分恢复正常了。有关当前状态,请参阅顶部的黄色横幅谷歌云仪表板 https://status.cloud.google.com/。如果没有黄色横幅,则问题可能已完全解决。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法调用 Firebase Hosting 背后的 Google Cloud Function - 状态 503,但状态页面上没有指示 [关闭] 的相关文章

随机推荐