Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
5 tasks done
Flipped1991 opened this issue Feb 20, 2025 · 2 comments · May be fixed by #13980
Closed
5 tasks done
Labels
🐞 bug Something isn't working

Comments

@Flipped1991
Copy link

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

@dosubot dosubot bot added the 🐞 bug Something isn't working label Feb 20, 2025
Copy link

dosubot bot commented 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

@Flipped1991
Copy link
Author

Flipped1991 commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants