Hasura 在学习教程时崩溃了

时间:2021-07-07 01:16:16

标签: graphql hasura hasura-jwt

我正在以下站点浏览 Hasura 教程,但由于某种原因“Hasura Console”崩溃了。

https://auth0.com/blog/building-a-collaborative-todo-app-with-realtime-graphql-using-hasura

崩溃的时间不清楚,但我认为是我打开react示例应用程序,通过身份验证,并添加了一个任务。

现状

Hasura 控制台

(免费计划)

它正在崩溃。 以下语句显示在 hasura 控制台中。

Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail

Heroku PostgresDB

一切正常。

当我查看“heroku postgres 概览”时,健康显示为可用。

Heroku 日志

使用 CLI 从 Heroku 服务器检索日志。

2021-07-07T00:03:47.000822+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=87086b11-27e0-44ef-a4da-04ca203af092 fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:03:58.533683+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=ef9a1f3e-dffc-4a1b-8266-e18b7ddfc06b fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:04:09.872896+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=2fd61c74-e0ba-4ece-b5b2-67faaa848c8f fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:04:22.097603+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=a20b4af1-925c-46cb-937b-1c3d71ade87c fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:04:26.300647+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=OPTIONS path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=a6f33560-23c6-45ce-99b8-aea0e4225dc8 fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:04:33.557640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=33ef0621-d489-488d-94ae-158d25fb5d96 fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:04:44.698673+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=58a1de21-c975-4c5e-99f9-ac27b8d3aaac fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http
2021-07-07T00:04:56.013882+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/v1/graphql" host=toto-inu3.herokuapp.com request_id=16ccadb3-a548-40bd-82a2-72d4147413d8 fwd="my ip..." dyno= connect= service= status=503 bytes= protocol=http

我的想法

自从我在 Hasura 的 Free 计划上创建应用程序以来,我认为它有可能崩溃,因为它超过了“60 个请求/分钟”的限制。

即使是这种情况,我也找不到恢复崩溃的方法...

请帮忙!

解决了!!!

感谢大家的评论!

我检查了 Heroku 日志,问题已成功解决。

似乎在 Heroku 上部署 Hasura 时, Heroku > 设置 > 配置变量 如果我将“HASURA_GRAPHQL_JWT_SECRET”的值括在单引号中,Hasura 似乎崩溃了。


这可能不是必需的,但我会为将来参考此页面的人回答评论。

<块引用>

Hasura 是部署在 Heroku 上(如博客文章中所述)还是您已将其部署在 Hasura Cloud 上?您分享的崩溃日志似乎来自 Heroku

我在 Heroku 上部署了 Hasura,而不是 Hasura Cloud。

我来分享一下...的配置部分的SS

Heroku > Settings > Config Vars

0 个答案:

没有答案
相关问题