Closed kurokobo closed 3 months ago
To resolve the inconsistency between the description and implementation of the CHECK_UPDATE_URL
configuration in Dify version 0.6.12-fix1
, you should set the variable to an empty value instead of true
or false
. According to the documentation:
#### CHECK\_UPDATE\_URL
是否开启检查版本策略,若设置为 false,则不调用 `https://updates.dify.ai` 进行版本检查。由于目前国内无法直接访问基于 CloudFlare Worker 的版本接口,设置该变量为空,可以屏蔽该接口调用。
This means you should set CHECK_UPDATE_URL
to an empty value to avoid calling the version check interface, which resolves the issue.
CHECK_UPDATE_URL=
This will prevent the application from attempting to send an HTTP request to true
or false
, which causes the errors you observed [1][2][3].
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.6.12-fix1
,main
Cloud or Self Hosted
Self Hosted (Docker), Self Hosted (Source)
Steps to reproduce
CHECK_UPDATE_URL=true
orCHECK_UPDATE_URL=false
✔️ Expected Behavior
If
CHECK_UPDATE_URL=true
, update is checked. IfCHECK_UPDATE_URL=false
, update is not checked.❌ Actual Behavior
In both cases, the following errors occur:
CHECK_UPDATE_URL=true
CHECK_UPDATE_URL=false
Additional Information
In
version.py
,CHECK_UPDATE_URL
is used as the actual URL to be checked for updates, instead of a flag to indicate whether an update should be checked or not. The code inversion.py
expects thatCHECK_UPDATE_URL
has"https://updates.dify.ai"
or""
(empty string).However, the
.env.example
describes that this variable should be set to eithertrue
orfalse
.So the Dify tries to send an HTTP request to
true
orfalse
and this causes above errors.Suggested changes
Update the description in the
.env.example
to specify eitherhttps://updates.dify.ai
or""
(an empty string). or updateversion.py
to send a request to the default URL only when the value istrue
.Perhaps updating
version.py
to accepttrue
orfalse
would be a better user experience, since in the most cases the user does not need to change the URL to check for updates.