Skip to content

The checkOrSetAccessToken method fails to work properly when the token expires or becomes invalid #23650

@joeyhacker

Description

@joeyhacker

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.1

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

When the token expires or becomes invalid, certain APIs such as /api/site and /api/parameters fail to reload using the token. This prevents the checkOrSetAccessToken method from obtaining a new valid token

✔️ Expected Behavior

Token is now automatically re-acquired and re-set when it becomes invalid.

❌ Actual Behavior

Token cannot be re-acquired and re-set after it expires or becomes invalid.

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions