preview chatflow logs errors #7446

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

Originally created by @wangshiyang on GitHub (Dec 30, 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

0.14.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

preview chatflow logs errors:
image
when i debug, i find this:
image
i had change it to this:
url = mapping.get("url") or mapping.get("remote_url")

✔️ Expected Behavior

preview success.

Actual Behavior

Invalid file url.

Originally created by @wangshiyang on GitHub (Dec 30, 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 0.14.2 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce preview chatflow logs errors: <img width="479" alt="image" src="https://github.com/user-attachments/assets/c2f6722b-6505-4d5c-8c29-c267e6a49f16" /> when i debug, i find this: <img width="850" alt="image" src="https://github.com/user-attachments/assets/e2e2bbeb-dc49-4104-9b1a-d3e036776964" /> i had change it to this: ` url = mapping.get("url") or mapping.get("remote_url")` ### ✔️ Expected Behavior preview success. ### ❌ Actual Behavior Invalid file url.
yindo added the 🐞 bug label 2026-02-21 18:20:37 -05:00
yindo closed this issue 2026-02-21 18:20:38 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 30, 2024):

To resolve the "Invalid file url" error in the preview chatflow logs for Dify version 0.14.2 in a self-hosted environment, ensure that the FILES_URL environment variable is correctly configured in your docker-compose.yaml file. This variable should be set to a valid base URL pointing to where your files are hosted. For example, if your files are accessible at http://yourdomain.com/files, update the configuration as follows:

FILES_URL: 'http://yourdomain.com/files'

After making this change, restart your Dify services to apply the updates [1].

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Dec 30, 2024): <!-- Answer --> To resolve the "Invalid file url" error in the preview chatflow logs for Dify version 0.14.2 in a self-hosted environment, ensure that the `FILES_URL` environment variable is correctly configured in your `docker-compose.yaml` file. This variable should be set to a valid base URL pointing to where your files are hosted. For example, if your files are accessible at `http://yourdomain.com/files`, update the configuration as follows: ```yaml FILES_URL: 'http://yourdomain.com/files' ``` After making this change, restart your Dify services to apply the updates <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=other)</sup>
Author
Owner

@wangshiyang commented on GitHub (Dec 30, 2024):

To resolve the "Invalid file url" error in the preview chatflow logs for Dify version 0.14.2 in a self-hosted environment, ensure that the FILES_URL environment variable is correctly configured in your docker-compose.yaml file. This variable should be set to a valid base URL pointing to where your files are hosted. For example, if your files are accessible at http://yourdomain.com/files, update the configuration as follows:

FILES_URL: 'http://yourdomain.com/files'

After making this change, restart your Dify services to apply the updates [1].

To continue talking to Dosu, mention @dosu.

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

but workflow logs preview works good.

@wangshiyang commented on GitHub (Dec 30, 2024): > To resolve the "Invalid file url" error in the preview chatflow logs for Dify version 0.14.2 in a self-hosted environment, ensure that the `FILES_URL` environment variable is correctly configured in your `docker-compose.yaml` file. This variable should be set to a valid base URL pointing to where your files are hosted. For example, if your files are accessible at `http://yourdomain.com/files`, update the configuration as follows: > > ```yaml > FILES_URL: 'http://yourdomain.com/files' > ``` > > After making this change, restart your Dify services to apply the updates [[1]](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml). > > _To continue talking to [Dosu](https://dosu.dev), mention @dosu._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/1b1493c7-b982-445d-b958-15c58b21c246?feedback_type=other) but workflow logs preview works good.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7446