You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
The error you're encountering, "insert or update on table 'messages' violates foreign key constraint 'messages_parent_id_messages_id_fk'," suggests that there is an issue with the self-referential relationship in the 'messages' table. This constraint ensures that the 'parent_id' column references a valid 'id' in the same table, typically used for hierarchical message structures. If a message is being inserted or updated with a 'parent_id' that does not exist in the 'id' column, this violation will occur [1].
To resolve this issue, you should ensure that any 'parent_id' value being inserted or updated in the 'messages' table corresponds to an existing 'id' in the same table. This might involve checking the logic in your code where messages are created or updated, particularly in the context of the searchWithSearXNG function, to ensure that all parent message IDs are valid and exist in the database. Additionally, reviewing the transaction handling in the create method of the MessageModel class might provide insights into how messages are managed and how to prevent such violations [2].
📦 部署环境
Other
📌 软件版本
1.37.2
💻 系统环境
macOS
🌐 浏览器
Safari, Firefox
🐛 问题描述
lobechat会员,调用函数searchWithSearXNG,输入卡顿。
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: