# Discord认证注册/登录时出现错误500

**URL:** https://meta.discourse.org/t/getting-error-500-on-discord-authentication-signup-login/226439
**Category:** Support
**Created:** [2022年五月8日 01:52 UTC](https://meta.discourse.org/t/getting-error-500-on-discord-authentication-signup-login/226439 "2022-05-08T01:52:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![NoobDart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noobdart/32/259457_2.png) [@NoobDart](https://meta.discourse.org/u/NoobDart)
#### Post date: [2022年五月8日 01:52 UTC](https://meta.discourse.org/t/getting-error-500-on-discord-authentication-signup-login/226439/1 "2022-05-08T01:52:25Z")

</div>

您好，我遇到了一些麻烦。

我们启用了 Discord 登录/注册，但遇到了

# **糟糕**

**为该讨论论坛提供支持的软件遇到了意外问题。我们对此造成的不便深表歉意。**

**有关错误的详细信息已记录，并生成了自动通知。我们会进行查看。**

**无需采取进一步行动。但是，如果错误状况持续存在，您可以通过在网站的反馈类别中发布讨论主题来提供更多详细信息，包括重现错误的步骤。**

不知道为什么。我们按照以下步骤操作 [Configure Discord Login for Discourse - #9](https://meta.discourse.org/t/configuring-discord-login-for-discourse/127129/9)  
但仍然收到错误，并且我们的网站日志显示：

NoMethodError (undefined method `id' for nil:NilClass) lib/discourse_event.rb:14:in `block in trigger’ lib/discourse\_event.rb:13:in `trigger’ app/controllers/users/omniauth\_callbacks\_controller.rb:37:

您知道是什么原因导致我头疼吗？
