dify - ๐Ÿ’ก(How to fix) Fix suggested-questions always fails

Official PRs (โ€ฆ)
ON THIS PAGE

Recommended Tools

ร—6

Utilities matched from this issueโ€™s tags and category โ€” try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful ยท Quick feedback

Loadingโ€ฆ

Error Message

2026-05-21 08:05:43.296 ERROR [Dummy-93] [message.py:360] ee60ee365b5b5f8e9059a9716b7b104d - internal server error. Traceback (most recent call last): 2026-05-21 08:05:43.297 ERROR [Dummy-93] [app.py:875] ee60ee365b5b5f8e9059a9716b7b104d - Exception on /console/api/apps/688c2975-d09b-4506-9eec-d869b2af302f/chat-messages/1e2c8805-5a39-4a3c-bc1e-e0b3ac638802/suggested-questions [GET] Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): werkzeug.exceptions.InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Fix Action

Fix / Workaround

Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/resource.py", line 41, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 225, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/libs/login.py", line 100, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 44, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/app/wraps.py", line 77, in decorated_view return view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/app/message.py", line 361, in get raise InternalServerError() werkzeug.exceptions.InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • ใ€ไธญๆ–‡็”จๆˆท & Non English Userใ€‘่ฏทไฝฟ็”จ่‹ฑ่ฏญๆไบค๏ผŒๅฆๅˆ™ไผš่ขซๅ…ณ้—ญ ๏ผš๏ผ‰
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

enable suggested questions in agent settings.

โœ”๏ธ Expected Behavior

suggested questions should work

โŒ Actual Behavior

2026-05-21 08:05:42.321 INFO [Dummy-90] [update_provider_when_message_created.py:177] e2fc45e85a555a60b42ad1fdd8ef34dd - Provider updates completed successfully. Updates: 1, Duration: 0.000506893964484334 s, Tenant: 5f7a8be7-62cb-4564-9f87-efe05b7cc0a7, Provider: langgenius/openai_api_compatible/openai_api_compatible 2026-05-21 08:05:43.296 ERROR [Dummy-93] [message.py:360] ee60ee365b5b5f8e9059a9716b7b104d - internal server error. Traceback (most recent call last): File "/app/api/controllers/console/app/message.py", line 342, in get questions = MessageService.get_suggested_questions_after_answer( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/services/message_service.py", line 300, in get_suggested_questions_after_answer conversation_override_model_configs = _app_model_config_adapter.validate_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/pydantic/type_adapter.py", line 492, in validate_json return self.validator.validate_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 2 validation errors for AppModelConfigDict annotation_reply Field required [type=missing, input_value={'pre_prompt': '', 'datas...assistant_prefix': ''}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.12/v/missing more_like_this Field required [type=missing, input_value={'pre_prompt': '', 'datas...assistant_prefix': ''}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.12/v/missing 2026-05-21 08:05:43.297 ERROR [Dummy-93] [app.py:875] ee60ee365b5b5f8e9059a9716b7b104d - Exception on /console/api/apps/688c2975-d09b-4506-9eec-d869b2af302f/chat-messages/1e2c8805-5a39-4a3c-bc1e-e0b3ac638802/suggested-questions [GET] Traceback (most recent call last): File "/app/api/controllers/console/app/message.py", line 342, in get questions = MessageService.get_suggested_questions_after_answer( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/services/message_service.py", line 300, in get_suggested_questions_after_answer conversation_override_model_configs = _app_model_config_adapter.validate_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/pydantic/type_adapter.py", line 492, in validate_json return self.validator.validate_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 2 validation errors for AppModelConfigDict annotation_reply Field required [type=missing, input_value={'pre_prompt': '', 'datas...assistant_prefix': ''}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.12/v/missing more_like_this Field required [type=missing, input_value={'pre_prompt': '', 'datas...assistant_prefix': ''}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.12/v/missing

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/resource.py", line 41, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 225, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/libs/login.py", line 100, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 44, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/app/wraps.py", line 77, in decorated_view return view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/app/message.py", line 361, in get raise InternalServerError() werkzeug.exceptions.InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Vote matrix ยท Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loadingโ€ฆ

Still need to ship something?

ร—6

Another batch ranked right after the header list โ€” different links, same matching logic.

Back to top recommendations

TRENDING

dify - ๐Ÿ’ก(How to fix) Fix suggested-questions always fails