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

Application error: a client-side exception has occurred #4522

Closed
4 tasks done
kk71 opened this issue May 20, 2024 · 2 comments
Closed
4 tasks done

Application error: a client-side exception has occurred #4522

kk71 opened this issue May 20, 2024 · 2 comments
Labels
🐞 bug Something isn't working 🤔 cant-reproduce This issue can not be reproduced

Comments

@kk71
Copy link

kk71 commented May 20, 2024

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).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Go to a chatbot for chatting
  2. and select some document as context(such as a word doc)
  3. ask the bot some questions, and the bot is responding.
  4. ops the whole page is just cleared with only showing "Application error: a client-side exception has occurred (see the browser console for more information)." in the middle of it.
    error-stack-from-browser-console

✔️ Expected Behavior

the bot continue responding to the end.

❌ Actual Behavior

the bot just stopped due to page scripts failure.

Copy link

dosubot bot commented May 20, 2024

To address the client-side exception you're encountering with the Dify chatbot, start by examining the browser console for specific error messages. These messages can offer clues about what's causing the script to fail. Ensure your Dify configuration is correct, particularly that the difyChatbotConfig object is properly set up and that the chatbotUrl is correctly defined.

Verify your Docker setup to ensure it's not restricting network access or interaction with Chrome's storage API, which could affect script execution. Also, review any CORS policies and Content Security Policies (CSP) that might be blocking requests to the chatbot URL from your domain.

Consider updating Dify to the latest version to benefit from any bug fixes or improvements. If problems persist, the specific error messages from the browser console will be crucial for further diagnosis.

For more detailed troubleshooting, refer to Dify's embed.js for embedding the chatbot and error.py for understanding potential exceptions.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label May 20, 2024
@crazywoola crazywoola added the 🤔 cant-reproduce This issue can not be reproduced label May 20, 2024
@crazywoola
Copy link
Member

Cant repro on the latest branch. And we can not infer what's going on based on limited information. Maybe you can provide more details regarding this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🤔 cant-reproduce This issue can not be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants