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
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.14.1
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
1.Enter in studio
2.Enter in a chatflow/workflow app
3.Enter in Logs page
4.If some messages of all of the conversations are in stopped or running status will get error
✔️ Expected Behavior
❌ Actual Behavior
The text was updated successfully, but these errors were encountered:
The error you're encountering is a KeyError for the key 'stopped' in the status_count function of the models/model.py file. This function is designed to count the number of messages with statuses like "success", "failed", and "partial_success" but does not handle the "stopped" status, which is causing the error [1].
To resolve this issue, you need to modify the status_count function to account for the "stopped" status. You can do this by adding a check for the "stopped" status in the function and updating the dictionary it returns to include this status. Here's a possible modification:
This change uses the get method to safely retrieve the count for each status, defaulting to 0 if the status is not present, and includes the "stopped" status in the returned dictionary.
Self Checks
Dify version
0.14.1
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
1.Enter in studio
2.Enter in a chatflow/workflow app
3.Enter in Logs page
4.If some messages of all of the conversations are in stopped or running status will get error
✔️ Expected Behavior
❌ Actual Behavior
The text was updated successfully, but these errors were encountered: