为该讨论论坛提供支持的软件遇到了意外问题 discourse

大家好,

我在我的 discourse 平台上添加了 Github 代码审查 插件,在正常运行一段时间后,现在出现了错误。它无法将数据从我的 Github 网页钩子发送到平台。
在 Github 网页钩子响应中,它显示

<!DOCTYPE html>
<html>
<head>
  <title>Oops - Error 500</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
    <h1>Oops</h1>
    <p>The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.</p>
    <p>Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.</p>
    <p>No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.</p>
</body>
</html>

在浏览器日志中,错误如下:

GraphQLClient::GraphQLError ([{:type=>“NOT_FOUND”, :path=>[“repository”, “pullRequest”], :locations=>[{:line=>4, :column=>15}], :message=>“Could not resolve to a PullRequest with the number of 1.”}])

任何帮助或建议都将不胜感激。

1 个赞

您需要查看服务器上的日志,具体方法请参见此处 Upgrading from 2.9.0.beta8 broke the site, unrecoverable - #11 by Benjamin_D

该主题描述了一个类似的问题,该问题可能与添加插件有关,也可能无关。

3 个赞

是的,我也检查了我的日志,但没有找到关于错误的具体信息。我正在使用 Code review 插件将我的 Github 与 Discourse 集成。那么,问题出在我使用的插件上吗?

1 个赞

每当我看到那个错误时,我都会在日志中看到一个 ruby 回溯。我建议你跟踪那个文件并重新加载页面。由于发生了很多事情,所以很难捕捉到。你也可以在该文件中搜索 500,尽管通常会有一些不是错误的 500 字符串,所以你必须继续查找。你也可以查看 error.log

你当然可以尝试删除那个以及任何其他插件并重建,特别是如果你有任何非标准插件。

1 个赞

我已经用相同的插件重建了应用程序,现在它能正常工作了,但我不太确定为什么之前不行。我使用的插件是 Discourse Enterprise 插件的一部分,所以我应该期望它会给我的应用程序带来问题吗?

您所有的插件都来自 discourse 存储库吗?

是的,所有插件都来自官方的 Discourse 仓库。

令人惊讶的是,这里存在一个问题。您需要查看日志并在其中找到 500 错误,以了解问题所在。

1 个赞

该问题已通过重新构建应用程序得到解决,感谢您的反馈 @pfaffman

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.