Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the api is called after 0.8.3 is updated to 0.9.1, only the last item is displayed in the view log #9231

Closed
5 tasks done
aileen5150 opened this issue Oct 11, 2024 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@aileen5150
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • 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.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When the api is called after 0.8.3 is updated to 0.9.1, only the last item is displayed in the view log

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Oct 11, 2024
Copy link

dosubot bot commented Oct 11, 2024

@aileen5150 Hello there! I'm here to assist you with any bugs, questions, or contributions related to Dify. Let's work together to resolve your issue.

It seems like you're experiencing an issue where only the last item is displayed in the view log after updating to version 0.9.1. This might be related to how the application handles multiple log entries.

In version 0.9.1, the application fetches and formats chat messages, updating the state with these messages. If only the last item is showing, it could be due to how the messages are being accumulated or displayed. Ensure that the fetchedMessages array is correctly accumulating all messages and that the setItems function is properly updating the state with the complete list of messages [1].

You might want to check the implementation of the fetchChatMessages function and how the messages are being formatted and set in the component's state. This could help identify if there's an issue with the data handling or rendering logic.

To continue talking to Dosu, mention @dosu.

@crazywoola
Copy link
Member

Duplicated #8965
See this for updates #8984
Follow-up pr #8749

@aileen5150
Copy link
Author

Update to 0.9.1-fix1 can view the log normally, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants