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

When I run it I enter an image address and the image is displayed at that time. But when I revisit it after exceeding FILES_ACCESS_TIMEOUT (default 300s), it says the image cannot be found #15216

Closed
5 tasks done
jiangbo721 opened this issue Mar 7, 2025 · 1 comment · Fixed by #15217
Assignees
Labels
🐞 bug Something isn't working cloud When the version is cloud and it is a bug report

Comments

@jiangbo721
Copy link
Contributor

jiangbo721 commented Mar 7, 2025

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

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

before:

Image

5mins after:

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Copy link

dosubot bot commented Mar 7, 2025

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

The issue you're experiencing is due to the FILES_ACCESS_TIMEOUT setting, which determines how long a signed URL for accessing an image remains valid. By default, this timeout is set to 300 seconds (5 minutes). After this period, the signed URL expires, and the image can no longer be accessed, resulting in the "image cannot be found" message [1].

To address this, you can either:

  1. Extend the Timeout: Increase the FILES_ACCESS_TIMEOUT value in your configuration to allow the signed URL to remain valid for a longer period. Be aware that extending the timeout can have security implications, such as increased risk of URL exposure and potential for replay attacks [2].

  2. Refresh the URL: Implement a mechanism to generate a new signed URL when the old one expires. This would involve re-signing the URL with a new timestamp and nonce to ensure continued access to the image.

Adjusting these settings should help maintain access to your images as needed.

To continue talking to Dosu, mention @dosu.


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

@dosubot dosubot bot added cloud When the version is cloud and it is a bug report 🐞 bug Something isn't working labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working cloud When the version is cloud and it is a bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants