# RSVP活动时未找到

**URL:** <https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416>\
**Category:** Bug\
**Tags:** fixed\
**Created:** [2024年七月8日 12:55 UTC](https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416 "2024-07-08T12:55:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)\
**Post date:** [2024年七月8日 12:55 UTC](https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416/1 "2024-07-08T12:55:46Z")

</div>

当用户尝试回复我们的活动时，会弹出一个“未找到”的提示，但回复仍然被收集。我认为没有丢失任何信息。

 ![CleanShot 2024-07-08 at 08.52.57](https://global.discourse-cdn.com/meta/original/4X/b/4/d/b4dee6a87c9c13b4507e8802dcad5a2f8da543e4.png)

[https://developer.sailpoint.com/discuss/t/july-2024-ambassador-office-hours-option-1/66659/1](https://developer.sailpoint.com/discuss/t/july-2024-ambassador-office-hours-option-1/66659/1)

[https://developer.sailpoint.com/discuss/t/july-2024-ambassador-office-hours-option-2/66660/1](https://developer.sailpoint.com/discuss/t/july-2024-ambassador-office-hours-option-2/66660/1)

---

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2024年七月10日 07:39 UTC](https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416/3 "2024-07-10T07:39:45Z")

</div>

我无法重现此问题。您能否提供更详细的信息，例如网站上安装的插件列表、网站日志（位于 `https://example.com/logs`）以及错误发生的具体情况？

---

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2024年七月12日 07:45 UTC](https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416/7 "2024-07-12T07:45:28Z")

</div>

您好 @putty

感谢您的报告！我们已找到错误原因并提交了修复程序：

> <https://github.com/discourse/discourse-livestream/pull/24>
>
> In \`topic\_view\` serializer, only topics that meet the tag containing \`livestream…\` will have corresponding channel. The \`chat\_channel\_id\` of other topics will be \`null\`.
> 
> \`\`\`ruby
> add\_to\_serializer(:topic\_view, :chat\_channel\_id) do
> return nil if object.topic.topic\_chat\_channel.blank?
> object.topic.topic\_chat\_channel.chat\_channel\_id
> end
> \`\`\`
> 
> \`\`\`ruby
> def self.handle\_topic\_chat\_channel\_creation(topic)
> return if topic.category.blank?
> return if DiscourseLivestream::TopicChatChannel.exists?(topic\_id: topic.id)
> return if topic.tags.blank? || topic.tags.none? { |tag| tag.name == "livestream" }
> \`\`\`
> 
> In the original code, there is no handling of null cases, which will result in trying to obtain information of null channel and throwing 404.
> 
> This commit determines the case where \`chat\_channel\_id\` is \`null\`
> 
> before:
> 
> !\[image\](https://github.com/user-attachments/assets/847c95f8-e6d4-44d5-a144-6e41a31428c9)
> 
> 
> after:
> 
> (error be fixed)
> 
> related meta topic: https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416

---

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [2024年七月15日 00:00 UTC](https://meta.discourse.org/t/not-found-when-rsvping-to-event/315416/8 "2024-07-15T00:00:32Z")

</div>

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