群组消息类别选择器导致“发生错误,出了些问题。”

您好,我们最近将两个实例升级到了 3.1.0.beta5 (286dfcacb4),并注意到自那以后出现了有关群组消息收件箱的以下问题:

  1. 转到您的“个人消息”,例如 https://discourse.example.com/u/gregory/messages
  2. 使用左上角的类别选择器选择某个(任意)群组的收件箱。
  3. 现在我们立即看到这个:

实际上没有任何内容记录到 https://discourse.example.com/logs/。

浏览器控制台显示:

  • TypeError: Cannot read properties of undefined (reading 'name') @ application.js:79
  • Error while processing route: userPrivateMessages.group.index Cannot read properties of undefined (reading 'name') TypeError: Cannot read properties of undefined (reading 'name') @ router.js:1064
  • Uncaught TypeError: Cannot read properties of undefined (reading 'name') @ rsvp.js:23

开发人员工具显示一个 POST 请求到 https://discourse.example.com/message-bus/35da09199d4b4a659887ec491695e8d5/poll,但未收到服务器响应,并在 25 秒后超时,响应为 []。这会触发另一个类似的 POST 请求,依此类推……

1 个赞

我也认为有另一份关于此的报告 - Cannot open the moderation inbox

我来看看是否能找人仔细看看。 :eyes: :+1:

5 个赞

哦,我没看到另一篇帖子。非常感谢!

有趣的是,在我们的案例中,“版主”收件箱是唯一仍然可以工作的收件箱 :sweat_smile:

审核邮箱可以通过链接 example.com/g/moderators/messages/inbox 打开。但是,如果您点击侧边栏或通知中的链接,会出现上述错误。侧边栏或通知中的链接结构也略有不同:example.com/u/username/messages/group/Moderators

1 个赞

我进一步观察到:

  • 如果版主在审核收件箱中回复帖子,则相应的帖子会正常打开。不会出现任何错误消息。链接在这里看起来也不同:example.com/t/title-of-the-topic/1234/4
  • 如果用户举报帖子并在消息中写下信息,因为他选择了“其他”,我也可以在收件箱中打开该消息。同样,链接看起来也像上面一样:example.com/t/title-of-the-topic/1234/4

因此,可以这样说:如果直接链接到审核收件箱中的帖子,也不会出现错误。

1 个赞

此问题已在以下位置修复:

感谢您的报告 @GregoryS

5 个赞

此主题已在 13 天后自动关闭。不再允许回复。