The chat agent encounters an error after page refresh when embedded in the web page. #8437

Closed
opened 2026-02-21 18:25:41 -05:00 by yindo · 1 comment
Owner

Originally created by @Dangyijie01 on GitHub (Feb 19, 2025).

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.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After the agent was deployed by embedding it into a web page and integrated into our self-developed system, the initial conversation works fine. However, clicking to refresh the page triggers an error with the following message:
"Application error: a client-side exception has occurred (see the browser console for more information)."

✔️ Expected Behavior

After a normal refresh, the system continues to function properly.

Actual Behavior

The page displays the error message: "Application error: a client-side exception has occurred (see the browser console for more information)."

Originally created by @Dangyijie01 on GitHub (Feb 19, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After the agent was deployed by embedding it into a web page and integrated into our self-developed system, the initial conversation works fine. However, clicking to refresh the page triggers an error with the following message: "Application error: a client-side exception has occurred (see the browser console for more information)." ### ✔️ Expected Behavior After a normal refresh, the system continues to function properly. ### ❌ Actual Behavior The page displays the error message: "Application error: a client-side exception has occurred (see the browser console for more information)."
yindo added the 🐞 bug label 2026-02-21 18:25:41 -05:00
yindo closed this issue 2026-02-21 18:25:42 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 19, 2025):

There is a known issue in Dify version 0.15.3 related to a client-side exception error after a page refresh when the chat agent is embedded in a web page. This is due to the accidental removal of the getPrevChatList function, which results in a TypeError [1][2].

The issue has been addressed in pull request #13383, which reintroduces the missing function. However, the fix is not yet available in a new Docker image. To resolve this, you can either wait for the next version release that includes the fix or manually build from the latest source code that contains the fix [3].

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[bot] commented on GitHub (Feb 19, 2025): <!-- Answer --> There is a known issue in Dify version 0.15.3 related to a client-side exception error after a page refresh when the chat agent is embedded in a web page. This is due to the accidental removal of the `getPrevChatList` function, which results in a `TypeError` <sup>[[1]](https://github.com/langgenius/dify/issues/14005)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/13388)</sup>. The issue has been addressed in pull request #13383, which reintroduces the missing function. However, the fix is not yet available in a new Docker image. To resolve this, you can either wait for the next version release that includes the fix or manually build from the latest source code that contains the fix <sup>[[3]](https://github.com/langgenius/dify/issues/13490)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/cf9fb7df-ed0f-40b3-9773-85beaf622f03?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8437