Failed to load resource: the server responded with a status of 404 (Not Found) embed.min.js:1 #8446

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

Originally created by @Flipped1991 on GitHub (Feb 20, 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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image
When deploying using Docker Compose with the dify version 1.0.0-beta, the embedded website bot does not appear, and an error occurs stating that embed.min.js:1 cannot be found.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Flipped1991 on GitHub (Feb 20, 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 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/1ba56294-8ef1-4af1-9d99-affaf00f30e1) When deploying using Docker Compose with the dify version 1.0.0-beta, the embedded website bot does not appear, and an error occurs stating that embed.min.js:1 cannot be found. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:25:44 -05:00
yindo closed this issue 2026-02-21 18:25:45 -05:00
Author
Owner

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

Hi @Flipped1991! I'm here to assist you with any bugs, questions, or contributions you have for Dify. Let's work together to resolve your issue.

I found a similar unsolved discussion titled "dify-web:1.0.0 not found" which was last updated on February 19, 2025 [1].

Regarding the 404 error for embed.min.js, this file is generated using the uglify-embed script, which is part of the build process in the Dify project. The script is defined in the package.json file and uses uglify-js as a dependency [2].

To resolve the issue, ensure that the build process for the embed.min.js file is completed successfully. You might need to run the build script manually if it hasn't been executed during the deployment. Check if the embed.min.js file is present in the expected directory after the build process. If it's missing, running the build script should generate it.

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 20, 2025): <!-- Greeting --> Hi @Flipped1991! I'm here to assist you with any bugs, questions, or contributions you have for Dify. Let's work together to resolve your issue. <!-- Answer --> I found a similar unsolved discussion titled "[dify-web:1.0.0 not found](https://github.com/langgenius/dify/discussions/14045)" which was last updated on February 19, 2025 <sup>[[1]](https://github.com/langgenius/dify/discussions/14045)</sup>. Regarding the 404 error for `embed.min.js`, this file is generated using the `uglify-embed` script, which is part of the build process in the Dify project. The script is defined in the `package.json` file and uses `uglify-js` as a dependency <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/package.json)</sup>. To resolve the issue, ensure that the build process for the `embed.min.js` file is completed successfully. You might need to run the build script manually if it hasn't been executed during the deployment. Check if the `embed.min.js` file is present in the expected directory after the build process. If it's missing, running the build script should generate it. <!-- 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/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d27b6e38-3e4f-4a00-8b12-74a27135b8ba?feedback_type=other)</sup>
Author
Owner

@Flipped1991 commented on GitHub (Feb 20, 2025):

thanks!
fix: Update default.conf.template to avoid 404 error for embed.min.js #13980.
The 32nd line in docker/nginx/conf.d/default.conf.template has been modified from

location /e { to location /e/ {

and the issue has indeed been resolved.

@Flipped1991 commented on GitHub (Feb 20, 2025): thanks! fix: Update default.conf.template to avoid 404 error for embed.min.js #13980. The 32nd line in `docker/nginx/conf.d/default.conf.template` has been modified from ``` location /e { to location /e/ { ``` and the issue has indeed been resolved.
Author
Owner

@rodrigo-92 commented on GitHub (Feb 26, 2025):

Tried this change and re composed docker files, still doesn't work. Am I missing something else?
This is what I see

Image



> dify-web@1.0.0 dev /Users/rodrigom/github_repos/dify/web
> cross-env NODE_OPTIONS='--inspect' next dev

Debugger listening on ws://127.0.0.1:9229/e043f2ff-349b-4be5-9d6c-d8bece455cab
For help, see: https://nodejs.org/en/docs/inspector
Debugger listening on ws://127.0.0.1:9230/b393b576-ec66-409b-9fe4-d49cdb413e3b
For help, see: https://nodejs.org/en/docs/inspector
   the --inspect option was detected, the Next.js router server should be inspected at port 9230.
  ▲ Next.js 14.2.15
  - Local:        http://localhost:3000
  - Environments: .env.local

 ✓ Starting...
   automatically enabled Fast Refresh for 1 custom loader
 ✓ Ready in 1678ms
 ✓ Compiled /middleware in 309ms (73 modules)
 ○ Compiling /signin ...
 ✓ Compiled /signin in 18.4s (3080 modules)
 GET /signin 200 in 20007ms
 ✓ Compiled in 1996ms (1276 modules)
 ○ Compiling /_not-found ...
 ✓ Compiled /_not-found in 7.8s (3000 modules)
 GET /assets/js/index.CucWK6IV.js 404 in 8388ms
 GET /assets/js/Wallet.mlGYZajl.js 404 in 8005ms
 GET /assets/js/asyncToGenerator.O4pnRyQq.js 404 in 7257ms
 GET /assets/js/index.umd.BXzp7Rme.js 404 in 6441ms
 GET /signin 200 in 246ms
 GET /assets/js/asyncToGenerator.O4pnRyQq.js 404 in 353ms
 GET /assets/js/index.CucWK6IV.js 404 in 355ms
 GET /assets/js/Wallet.mlGYZajl.js 404 in 357ms
 GET /assets/js/index.umd.BXzp7Rme.js 404 in 77ms
 GET /signin 200 in 154ms
 GET /assets/js/index.umd.BXzp7Rme.js 404 in 264ms
 GET /assets/js/Wallet.mlGYZajl.js 404 in 265ms
 GET /assets/js/asyncToGenerator.O4pnRyQq.js 404 in 265ms
 GET /assets/js/index.CucWK6IV.js 404 in 267ms```
@rodrigo-92 commented on GitHub (Feb 26, 2025): Tried this change and re composed docker files, still doesn't work. Am I missing something else? This is what I see ![Image](https://github.com/user-attachments/assets/33fabb6e-d542-4cf5-a0f3-0c0590c75845) ```➜ web git:(feature/sambanovacloud_integration_dify) ✗ pnpm run dev > dify-web@1.0.0 dev /Users/rodrigom/github_repos/dify/web > cross-env NODE_OPTIONS='--inspect' next dev Debugger listening on ws://127.0.0.1:9229/e043f2ff-349b-4be5-9d6c-d8bece455cab For help, see: https://nodejs.org/en/docs/inspector Debugger listening on ws://127.0.0.1:9230/b393b576-ec66-409b-9fe4-d49cdb413e3b For help, see: https://nodejs.org/en/docs/inspector the --inspect option was detected, the Next.js router server should be inspected at port 9230. ▲ Next.js 14.2.15 - Local: http://localhost:3000 - Environments: .env.local ✓ Starting... automatically enabled Fast Refresh for 1 custom loader ✓ Ready in 1678ms ✓ Compiled /middleware in 309ms (73 modules) ○ Compiling /signin ... ✓ Compiled /signin in 18.4s (3080 modules) GET /signin 200 in 20007ms ✓ Compiled in 1996ms (1276 modules) ○ Compiling /_not-found ... ✓ Compiled /_not-found in 7.8s (3000 modules) GET /assets/js/index.CucWK6IV.js 404 in 8388ms GET /assets/js/Wallet.mlGYZajl.js 404 in 8005ms GET /assets/js/asyncToGenerator.O4pnRyQq.js 404 in 7257ms GET /assets/js/index.umd.BXzp7Rme.js 404 in 6441ms GET /signin 200 in 246ms GET /assets/js/asyncToGenerator.O4pnRyQq.js 404 in 353ms GET /assets/js/index.CucWK6IV.js 404 in 355ms GET /assets/js/Wallet.mlGYZajl.js 404 in 357ms GET /assets/js/index.umd.BXzp7Rme.js 404 in 77ms GET /signin 200 in 154ms GET /assets/js/index.umd.BXzp7Rme.js 404 in 264ms GET /assets/js/Wallet.mlGYZajl.js 404 in 265ms GET /assets/js/asyncToGenerator.O4pnRyQq.js 404 in 265ms GET /assets/js/index.CucWK6IV.js 404 in 267ms```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8446