v0.10.0,in workflow,get file.url is null #6629

Closed
opened 2026-02-21 18:16:37 -05:00 by yindo · 2 comments
Owner

Originally created by @h897372063 on GitHub (Nov 8, 2024).

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

v0.10.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • upload a txt file. then get it's url , but get null .

image

✔️ Expected Behavior

  • get file’s url string

Actual Behavior

No response

Originally created by @h897372063 on GitHub (Nov 8, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version v0.10.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce * upload a txt file. then get it's url , but get null . ![image](https://github.com/user-attachments/assets/736f383c-625b-4bf3-ac17-b4a4112b4347) ### ✔️ Expected Behavior * get file’s url string ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:16:37 -05:00
Author
Owner

@crazywoola commented on GitHub (Nov 8, 2024):

Please read our existing issues and closed issues.

@crazywoola commented on GitHub (Nov 8, 2024): Please read our existing issues and closed issues.
Author
Owner

@dosubot[bot] commented on GitHub (Nov 8, 2024):

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

I found some relevant information that might help address the issue of getting a null file URL in Dify v0.10.0:

  1. Error Handling Mechanisms: There are specific conditions in the Dify codebase that could lead to a null file URL being returned. For instance, if certain attributes like remote_url, related_id, or extension are missing, a ValueError is raised, which might result in a null URL [1].

  2. Configuration Requirements: Ensure that your self-hosted instance is correctly configured. This includes settings like FILES_URL, which must be an externally accessible address if using the url format for multimodal models [2].

  3. Recent Changes in v0.10.0: The URL generation pattern has been updated in v0.10.0, which might affect how URLs are generated and retrieved. Ensure that your setup aligns with these changes [3].

  4. Logs and Error Messages: Check for any specific logs or warnings that might indicate why the URL is null. For example, a warning message "Dify Chatbot Url is empty or is not provided" might be logged if the configuration is not set correctly [4].

Additionally, there are similar discussions that might provide further insights:

Review these points and discussions to troubleshoot the issue further.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 8, 2024): <!-- Greeting --> @h897372063 Hello there! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together! <!-- Answer --> I found some relevant information that might help address the issue of getting a null file URL in Dify v0.10.0: 1. **Error Handling Mechanisms**: There are specific conditions in the Dify codebase that could lead to a null file URL being returned. For instance, if certain attributes like `remote_url`, `related_id`, or `extension` are missing, a `ValueError` is raised, which might result in a null URL <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/file/file_manager.py)</sup>. 2. **Configuration Requirements**: Ensure that your self-hosted instance is correctly configured. This includes settings like `FILES_URL`, which must be an externally accessible address if using the `url` format for multimodal models <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/jp/getting-started/install-self-hosted/environments.md)</sup>. 3. **Recent Changes in v0.10.0**: The URL generation pattern has been updated in v0.10.0, which might affect how URLs are generated and retrieved. Ensure that your setup aligns with these changes <sup>[[3]](https://github.com/langgenius/dify/blob/main/api/models/dataset.py)</sup>. 4. **Logs and Error Messages**: Check for any specific logs or warnings that might indicate why the URL is null. For example, a warning message "Dify Chatbot Url is empty or is not provided" might be logged if the configuration is not set correctly <sup>[[4]](https://github.com/langgenius/dify/blob/main/third-party/chrome%20plug-in/content.js)</sup>. Additionally, there are similar discussions that might provide further insights: - [Unable to open image: /files/tools](https://github.com/langgenius/dify/discussions/10312) (open) <sup>[[5]](https://github.com/langgenius/dify/discussions/10312)</sup>. - [I can't upload the image on dify workflow via api](https://github.com/langgenius/dify/discussions/7482) (open) <sup>[[6]](https://github.com/langgenius/dify/discussions/7482)</sup>. - [File URL as returned in dify workflow does not match the file location in s3 (self hosted instance)](https://github.com/langgenius/dify/discussions/6729) (open) <sup>[[7]](https://github.com/langgenius/dify/discussions/6729)</sup>. Review these points and discussions to troubleshoot the issue further. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6629