בורר קטגוריית הודעה להודעות קבוצתיות מוביל ל"שגיאה משהו השתבש."

סיכום מבוסס בינה מלאכותית

A bug in Discourse 3.1.0.beta5 causes an error when selecting group message inboxes via the category selector, resulting in a TypeError: Cannot read properties of undefined (reading 'name') and a failing POST request to the message bus. The issue affects all group inboxes except the moderators’ inbox, which works when accessed directly. The error occurs when opening group inboxes through the sidebar or notifications, but not when accessing topics directly from the moderation inbox. The bug has been fixed in pull request #22183.

Hi, we recently upgraded two instances to 3.1.0.beta5 (286dfcacb4) and noticed the following issue regarding inboxes for group messages since then:

  1. Go to your “personal messages”, e.g. https://discourse.example.com/u/gregory/messages
  2. Use the category selector on the top-left to select the inbox of some (arbitrary) group.
  3. Now we immediately get this:

Nothing is actually logged to https://discourse.example.com/logs/.

The browser console shows:

  • 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

The developer tools show a POST request to https://discourse.example.com/message-bus/35da09199d4b4a659887ec491695e8d5/poll that does not receive any response from the server and after 25 seconds times out with response []. This then triggers another such POST request etc…

לייק 1

I think there’s been another report of this too - Cannot open the moderation inbox

Let me see if I can get someone to take a closer look. :eyes: :+1:

5 לייקים

Oh, I didn’t see the other post. Thanks a lot!

Interestingly, the “moderators” inbox is the only one that does still work in our case :sweat_smile:

The moderation mailbox can be opened via the link example.com/g/moderators/messages/inbox. However, if you click on the link in the sidebar or on a notification, the aforementioned error appears. The link in the sidebar or in the notification is also structured slightly differently: example.com/u/username/messages/group/Moderators

לייק 1

I have observed further:

  • If a moderator responds to a reply in the moderation inbox, the corresponding topic opens without any problems. No error message appears. The link looks different here too: example.com/t/title-of-the-topic/1234/4
  • If a user reports a post and writes a message at the message because he selected Other, I can open the message in the mailbox as well. Again, the link looks like above: example.com/t/title-of-the-topic/1234/4

So one can state: If a link is made directly to a topic in the moderation inbox, no error appears either.

לייק 1

This has been fixed in

https://github.com/discourse/discourse/pull/22183

Thank you for the report @GregoryS

5 לייקים

This topic was automatically closed after 13 days. New replies are no longer allowed.