dify icon indicating copy to clipboard operation
dify copied to clipboard

When opening "Model Providers" the page displays an error.

Open linhao622 opened this issue 1 year ago • 1 comments

Self Checks

  • [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0-beta

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1、 After installing some plugins (see the image below), when I opened "Model Providers"

image

it prompted with an error message“Application error:a client-side exception has occurred” Additionally, I tried changing the system language to "简体中文", but received the same error.

image image

✔️ Expected Behavior

Able to open the "Model Providers" interface and operate it normally.

❌ Actual Behavior

As shown in the title.

linhao622 avatar Jan 13 '25 06:01 linhao622

The error you're encountering on the "Model Providers" page could be related to several factors, especially given the context of plugin installations and language settings. Here are some potential causes and solutions:

  1. Plugin Compatibility: The error might be due to compatibility issues with the newly installed plugins. Ensure that all plugins are compatible with the current version of Dify (1.0.0-beta) and that they are correctly configured. You might want to try disabling the plugins one by one to identify if a specific plugin is causing the issue.

  2. Language Settings: The error when switching to "简体中文" suggests there might be an issue with language resources or translations. Ensure that the language files are correctly loaded and that there are no missing translations for the selected language. The use of i18next for internationalization could be a point of failure if the language resources are not properly configured [1].

  3. Network Requests: The failed network requests in the developer tools indicate that there might be an issue with the API endpoints. Verify that the API server is running correctly and that there are no network issues preventing the client from reaching the server. Check the server logs for any errors that might provide more insight.

  4. Client-Side Error Handling: The client-side code uses try-catch blocks to handle errors during API calls. If these blocks are not capturing the error, it might be due to an unhandled exception or a specific condition not being met. Review the error handling logic in the client-side code to ensure all potential errors are managed [2].

By addressing these areas, you should be able to identify and resolve the issue causing the client-side exception on the "Model Providers" page.

To continue talking to Dosu, mention @dosu.


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

dosubot[bot] avatar Jan 13 '25 06:01 dosubot[bot]