# 订阅出现500错误的问题

**URL:** <https://meta.discourse.org/t/problem-with-500-error-with-subscriptions/360808>\
**Category:** Support\
**Tags:** subscriptions\
**Created:** [2025年四月7日 21:28 UTC](https://meta.discourse.org/t/problem-with-500-error-with-subscriptions/360808 "2025-04-07T21:28:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2025年四月8日 21:13 UTC](https://meta.discourse.org/t/problem-with-500-error-with-subscriptions/360808/5 "2025-04-08T21:13:52Z")

</div>

感谢您的帮助！

> [@blake](#):
>
> 也许我遗漏了什么，但 `/s/<username>/subscriptions/` 并不是插件中的路由，对吗？

> <https://github.com/discourse/discourse-subscriptions/blob/b0af86f12bd8a38503d0c8ec2e0505ad6e568135/assets/javascripts/discourse/models/user-subscription.js#L9>

> [@blake](#):
>
> 到目前为止，当我访问 `/my/billing/subscriptions` 时

它会从该端点拉取。在此服务器上，对于某些用户，我会收到 500 错误（我认为我应该附上截图）。我认为这种情况已经发生了一段时间了？他们让我加入升级，我照做了，然后他们报告了这个错误，但似乎他们希望升级能够解决它（至少升级没有破坏它？）。

> [@blake](#):
>
> 还有其他关于我如何重现此问题的线索吗？

零。我最好的猜测是，过去某个时候发生了某些事情，现在它从某个地方得到了一个 `nil` 而不是一个数组？但我已经查看了代码，没有看到任何地方在访问数组之前没有检查 `nil`。

---

_[View the full topic](https://meta.discourse.org/t/problem-with-500-error-with-subscriptions/360808)._
