The installed tool cannot load the icon #8395

Closed
opened 2026-02-21 18:25:29 -05:00 by yindo · 3 comments
Owner

Originally created by @caicongyang on GitHub (Feb 18, 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-beta.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Image

✔️ Expected Behavior

The icon address was loaded from local 127.0.0.1, while my service is installed on the server

Actual Behavior

http://localhost:5001/console/api/workspaces/current/plugin/icon?tenant_id=44d3edac-00cc-4171-bb4f-91c6adf6bd51&filename=1c5871163478957bac64c3fe33d72d003f767497d921c74b742aad27a8344a74.svg

Originally created by @caicongyang on GitHub (Feb 18, 2025). ### 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 1.0.0-beta.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/4d4ced7f-24d1-42ea-bd42-16b11c727fac) ![Image](https://github.com/user-attachments/assets/acb0159a-f9cf-49fb-9254-837924b9f9f5) ### ✔️ Expected Behavior The icon address was loaded from local 127.0.0.1, while my service is installed on the server ### ❌ Actual Behavior http://localhost:5001/console/api/workspaces/current/plugin/icon?tenant_id=44d3edac-00cc-4171-bb4f-91c6adf6bd51&filename=1c5871163478957bac64c3fe33d72d003f767497d921c74b742aad27a8344a74.svg
yindo added the 🐞 bug label 2026-02-21 18:25:29 -05:00
yindo closed this issue 2026-02-21 18:25:29 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 18, 2025):

Hey there, @caicongyang! 👋 I'm here to help you with any bugs, questions, or contributions you might have for the project. Let's squash those bugs together!

To resolve the issue of icons not loading and resulting in "ERR_CONNECTION_REFUSED" errors, ensure that the base URL for resource requests is correctly configured. In a self-hosted Dify environment, the NEXT_PUBLIC_PUBLIC_API_PREFIX environment variable should be set to the base URL of the Web App. This is crucial if the web app domain differs from the console or API domain. For example, it should be set to http://your-server-address:5001/api instead of http://localhost:5001/api [1].

Additionally, verify that the server is correctly configured to accept connections on the specified port (5001 in this case) and that there are no firewall rules blocking these requests. Ensure that the server address in your .env file is set to the correct external address where your Dify instance is hosted, replacing localhost with your actual server address [2].

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[bot] commented on GitHub (Feb 18, 2025): <!-- Greeting --> Hey there, @caicongyang! 👋 I'm here to help you with any bugs, questions, or contributions you might have for the project. Let's squash those bugs together! <!-- Answer --> To resolve the issue of icons not loading and resulting in "ERR_CONNECTION_REFUSED" errors, ensure that the base URL for resource requests is correctly configured. In a self-hosted Dify environment, the `NEXT_PUBLIC_PUBLIC_API_PREFIX` environment variable should be set to the base URL of the Web App. This is crucial if the web app domain differs from the console or API domain. For example, it should be set to `http://your-server-address:5001/api` instead of `http://localhost:5001/api` <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/.env.example)</sup>. Additionally, verify that the server is correctly configured to accept connections on the specified port (5001 in this case) and that there are no firewall rules blocking these requests. Ensure that the server address in your `.env` file is set to the correct external address where your Dify instance is hosted, replacing `localhost` with your actual server address <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/.env.example)</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/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0ce36c5a-3785-48a3-b8ae-88a02d8ef591?feedback_type=other)</sup>
Author
Owner

@ocean-oo commented on GitHub (Feb 20, 2025):

I also get the same error on my server

@ocean-oo commented on GitHub (Feb 20, 2025): I also get the same error on my server
Author
Owner

@chunxingque commented on GitHub (Mar 3, 2025):

I have also encountered this problem. When adding a tool, the icon displays 404. Is there any way to solve it?

Image

Image

@chunxingque commented on GitHub (Mar 3, 2025): I have also encountered this problem. When adding a tool, the icon displays 404. Is there any way to solve it? ![Image](https://github.com/user-attachments/assets/670a873f-81b6-4f57-af5f-222554a4c4be) ![Image](https://github.com/user-attachments/assets/e4fdb2a9-229b-49eb-9772-3ef0a135a340)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8395