Skip to content

suggestedQuestions too long exception #18172

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

Closed
5 tasks done
nhlzh8708 opened this issue Apr 16, 2025 · 1 comment · Fixed by #18194
Closed
5 tasks done

suggestedQuestions too long exception #18172

nhlzh8708 opened this issue Apr 16, 2025 · 1 comment · Fixed by #18194
Labels
🐞 bug Something isn't working

Comments

@nhlzh8708
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

1.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. create chatflow and set openingQuestion about 200 char

Image

  1. preview or running , suggested questions show exception

Image

  1. i don't no why web/app/components/base/chat/chat/answer/suggested-questions.tsx, change <div> to <button> in Feat: web app dark mode
    Feat: web app dark mode #14732

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Copy link

dosubot bot commented Apr 16, 2025

Hello @nhlzh8708! I'm Dosu, your friendly bot here to help you tackle bugs, answer questions, and guide you in becoming a contributor. I'm ready to assist you while we wait for a human maintainer. How can I help you today?

The exception you're encountering with suggested questions being too long is likely due to a constraint in the Dify chatflow configuration, which limits each suggested question to under 20 characters [1].

Regarding the change from <div> to <Button> in the suggested-questions.tsx file, this modification was part of the "Feat: web app dark mode" pull request. The Button component is designed to handle user interactions more effectively than a div, as it can trigger events like onClick and supports various styling options [2]. This change should not directly affect the character limit constraint but may impact how interactions with suggested questions are handled in the UI.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the 🐞 bug Something isn't working label Apr 16, 2025
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

Successfully merging a pull request may close this issue.

1 participant