Skip to content

can not start by error: pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyConfig #11534

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
yihong0618 opened this issue Dec 10, 2024 · 1 comment · Fixed by #11535
Closed
5 tasks done
Labels
🐞 bug Something isn't working

Comments

@yihong0618
Copy link
Contributor

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

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

start local

✔️ Expected Behavior

succeed

❌ Actual Behavior

pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyConfig
REMOTE_SETTINGS_SOURCE_NAME
Input should be 'apollo' [type=enum, input_value='', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/enum

@dosubot dosubot bot added the 🐞 bug Something isn't working label Dec 10, 2024
Copy link

dosubot bot commented Dec 10, 2024

Hey @yihong0618! I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's tackle this issue together!

The error you're encountering indicates that the REMOTE_SETTINGS_SOURCE_NAME field in your DifyConfig is not set to a valid value. The valid value for this field is "apollo" [1].

To resolve this issue, ensure that your configuration file (likely .env or another environment configuration file) includes the line:

REMOTE_SETTINGS_SOURCE_NAME=apollo

This should align the configuration with the expected value and resolve the validation error.

To continue talking to Dosu, mention @dosu.


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

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