You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@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:
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].
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.
Self Checks
Dify version
1.0.0
Cloud or Self Hosted
Cloud
Steps to reproduce
before:
5mins after:
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: