# 创建无所有者的仅请求群组时出现描述不清的错误消息

**URL:** https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049
**Category:** UX
**Tags:** fixed
**Created:** [2026年五月29日 00:48 UTC](https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049 "2026-05-29T00:48:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [2026年五月29日 00:48 UTC](https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049/1 "2026-05-29T00:48:18Z")

</div>

当你尝试发起一个仅包含群组但没有所有者的请求时，例如：

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/f/b/0fb68f5f85e3930df1dd2d3d53d159a0c669b20f.png)

… 你将收到一条通用的“失败”消息：

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/e/e/5ee3c3f9d0faeaae8512d4305dcdf4a321879adb.png)

这虽然不是什么大问题，但如果能在那里注明具体错误原因就好了。我无意中遇到了这个错误，直到发现自己没有设置群组所有者，才意识到问题所在。

---

<div class="post-metadata">

### Author: ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)
#### Post date: [2026年五月29日 01:56 UTC](https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049/2 "2026-05-29T01:56:42Z")

</div>

我快速看了一下这个问题。表单已提交，当后端验证失败时，会返回一个通用错误信息。

添加前端验证，并在后端返回更具描述性的错误信息，这两种方案看起来都是合理的修复方式。

* * *

此外，当你在表单下方将群组设为私密时，这些复选框会被禁用；但如果你之前已经勾选了它们，它们仍会保持勾选状态。这导致前端防护机制失效，使得你可以创建一个要求公开可见性的访问策略的私密群组。

 ![Screenshot 2026-05-29 at 9.52.26 AM](https://global.discourse-cdn.com/meta/original/4X/4/a/d/4ad3333e2bd737116cd031603191a690f4dd7adc.png)

* * *

编辑：前端验证可能并不那么直接，因为表单被拆分成了多个组件，依赖部分分散在不同的组件中。一旦群组创建完成，这些部分会被分在不同的标签页中，这显然不太理想。此外，这是一个遗留的 Ember 组件，使用了双向绑定。

另外，在创建群组后，你还可以移除所有所有者，这将导致群组无法正常使用。

---

<div class="post-metadata">

### Author: ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)
#### Post date: [2026年五月29日 02:41 UTC](https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049/3 "2026-05-29T02:41:43Z")

</div>

我提交了一个拉取请求 [here](https://github.com/discourse/discourse/pull/40391)，以便后端返回更清晰的错误信息：

 ![Screenshot 2026-05-29 at 10.36.27 AM](https://global.discourse-cdn.com/meta/original/4X/1/a/c/1aca4ba141bd6405cc02f578b973266a562e086c.png)

该错误信息原本就存在于翻译文件中，因此这可能是一次回归问题。

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [2026年五月29日 06:00 UTC](https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049/4 "2026-05-29T06:00:59Z")

</div>

> [@ted](#):
>
> 所以这大概是一次回归。

对我来说看起来确实如此

> [@"You cannot allow membership requests without any owners."](https://meta.discourse.org/t/you-cannot-allow-membership-requests-without-any-owners/64760?u=darkpixlz):
>
> [[image] ](https://i.imgur.com/RHedMjK.png) I’ve got this error everytime I try to create a group with the setting “Allow users to send membership requests to group owners”. When you create a new custom group you can’t add the owners immediately because you need to save the group first. [[image] ](https://i.imgur.com/06yr4ak.png) Probably this particular setting need some review. At least it can be removed here, you can see it after you save the group [[image] ](https://i.imgur.com/brVZhzd.png) …

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [2026年六月1日 06:01 UTC](https://meta.discourse.org/t/indescriptive-error-message-when-you-make-a-request-only-group-with-no-owner/404049/5 "2026-06-01T06:01:56Z")

</div>

此主题在最后一次回复 3 天后自动关闭。不再允许新的回复。
