Closed yanzu888 closed 8 months ago
🤖
Hey @yanzu888, nice to see you back here! Hope you're doing well.
Based on the information you've provided, it seems like you're encountering a client-side exception when trying to start a new conversation in your self-hosted Dify version 0.5.6 application, especially in chat applications with historical conversations. Unfortunately, without specific error messages or details about the client-side exception, it's challenging to provide a specific solution.
However, I can suggest some general steps to debug and potentially resolve the issue:
Check the browser console for error messages: When the exception occurs, the browser console might display error messages that could provide clues about what's causing the issue.
Review the code related to starting a new conversation: In the provided context, this seems to be handled by the handleStartChat
function. Ensure that all necessary data is available and correctly handled when this function is called.
Ensure the state of the application is correctly updated: When starting a new conversation, several state variables are updated in the handleStartChat
function, such as setCurrInputs
, setChatStarted
, and setChatList
.
Review the code related to fetching and handling historical conversations: If the issue only occurs in chat applications with historical conversations, it might be related to how these conversations are loaded or handled.
You can refer to the source code here: web/app/components/share/chatbot/index.tsx
Also, I found some similar issues that were resolved in the past:
These issues were resolved by a pull request: fix: config not exists
If the issue persists, could you please provide more details about the exception and the specific circumstances in which it occurs? This could help in identifying a more specific solution.
Fixed in this pr https://github.com/langgenius/dify/pull/2513, we haven't release the new version. It should be fixed in v0.5.7.
Fixed in this pr #2513, we haven't release the new version. It should be fixed in v0.5.7.
The same problem occurred with version 0.6.7
The same problem occurred with version 0.6.12-fix1(current version) and 0.6.9
Self Checks
Dify version
0.5.6
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Access your own application by sharing the address and start a new conversation. Opening a new window to access will have a very high probability of popping up this error message. It seems that this malfunction is easy to occur in chat applications with historical conversations. Amazingly, if you keep refreshing the page after opening F12, this error will not occur.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response