HEROKU已从日志流断开连接,可能发生了您在此处看不到的事件!正在尝试重新连接

bxpogfeg  于 2022-11-13  发布在  其他
关注(0)|答案(2)|浏览(109)

我推了一个关于Heroku的项目,然后检查,然后去
更多〉查看日志
这是我的代码:

var admin = require("firebase-admin");
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var serviceAccount = require("./serviceAccountKey.json");

app.use(bodyParser.urlencoded({ extended: true }));    

console.log("HELLO WORLD");

且显示了

2017-05-18T13:31:12.548867+00:00 app[api]: Release v15 created by user mail@mail.com
2017-05-18T13:31:12.548867+00:00 app[api]: Deploy a13cfedb by user mail@mail.com
2017-05-18T13:30:56.000000+00:00 app[api]: Build succeeded
2017-05-18T13:35:10.000000+00:00 app[api]: Build started by user mail@mail.com
2017-05-18T13:35:26.442732+00:00 app[api]: Deploy 2beqer61 by user mail@mail.com
2017-05-18T13:35:26.442732+00:00 app[api]: Release v16 created by user mail@mail.com
2017-05-18T13:35:10.000000+00:00 app[api]: Build succeeded
2017-05-18T13:57:04.000000+00:00 app[api]: Build started by user mail@mail.com
2017-05-18T13:57:21.455262+00:00 app[api]: Deploy 31d134 by user mail@mail.com
2017-05-18T13:57:21.455262+00:00 app[api]: Release v17 created by user mail@mail.com
2017-05-18T13:57:04.000000+00:00 app[api]: Build succeeded
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...

我试着在谷歌上搜索这个错误,但似乎其他人也遇到了和我一样的错误。有人能告诉我如何修复它吗?

gupuwyp2

gupuwyp21#

这与你的代码无关。只是Heroku日志停止更新。如果你按下F5,它会再次连接,你就可以看到日志中的内容。
如果您想在自己的控制台中查看日志,也可以使用命令heroku logs --app [YOURAPPNAMEHERE],只要您的系统上安装了Heroku CLI

uxhixvfz

uxhixvfz2#

我刚刚刷新了我的浏览器,那个错误就消失了。我不知道那个错误是由我们托管的应用程序引起的。它是来自heroku方面的错误。

相关问题