【问题标题】:502 Bad Gateway Error when accessing Google Firebase Hosting from Google App Engine从 Google App Engine 访问 Google Firebase 托管时出现 502 Bad Gateway 错误
【发布时间】:2016-11-13 05:26:02
【问题描述】:

当我想从托管在 Google App Engine 上的 Node.js 应用程序访问托管在 Google Firebase 托管上的静态文件时,我遇到了 502 Bad Gateway 错误。从我的本地计算机访问相同的文件时,一切正常。所有 CORS 标头均已正确定义。

我是否缺少其他东西,例如 Firebase 的访问密钥等?我相信问题可能出在我的app.yaml 部署文件上。

【问题讨论】:

    标签: node.js google-app-engine firebase


    【解决方案1】:

    自己解决了这个问题!由于大多数中间件不再与 Express 捆绑在一起,因此需要在 package.json 中为我的 EJS 视图手动添加包。

    【讨论】:

      猜你喜欢
      • 2021-03-31
      • 1970-01-01
      • 1970-01-01
      • 2020-08-27
      • 1970-01-01
      • 2021-10-02
      • 2018-08-06
      • 1970-01-01
      • 2016-10-28
      相关资源
      最近更新 更多