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

Custome icon error : The requested resource isn't a valid image #11693

Closed
5 tasks done
kkjinping opened this issue Dec 16, 2024 · 4 comments · Fixed by #11701
Closed
5 tasks done

Custome icon error : The requested resource isn't a valid image #11693

kkjinping opened this issue Dec 16, 2024 · 4 comments · Fixed by #11701
Assignees
Labels
🐞 bug Something isn't working

Comments

@kkjinping
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

0.14

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

QQ20241216-162710
QQ20241216-162722

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Dec 16, 2024
Copy link

dosubot bot commented Dec 16, 2024

The error message "The requested resource isn't a valid image" could be related to several factors in the Dify platform. Here are some potential causes and solutions:

  1. Supported Image Formats: Ensure that the image you are trying to use is in one of the supported formats: JPG, JPEG, PNG, GIF, WEBP, or SVG [1].

  2. Image Size Limit: Check if the image exceeds the size limit of 10 MB. If it does, try reducing the image size [2].

  3. Image Validation Logic: The image validation logic is implemented in the File class within the api/core/file/models.py file. You might want to review this logic to ensure that the image meets all the validation criteria [3].

  4. Configuration Settings: Verify the configuration settings related to image handling, such as FILES_URL and MULTIMODAL_SEND_IMAGE_FORMAT, to ensure they are correctly set up for your environment [4].

By checking these aspects, you might be able to identify and resolve the issue with the custom icon error.

To continue talking to Dosu, mention @dosu.


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

@kkjinping
Copy link
Author

It worked fine before version 0.14.

@crazywoola
Copy link
Member

crazywoola commented Dec 16, 2024

Can you try to upload the image again? I reproduced this. Will fix it later.

@kkjinping
Copy link
Author

Can you try to upload the image again? I reproduced this. Will fix it later.

same error

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.

3 participants