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

Error message received when I upload PDF #10127

Closed
5 tasks done
Rain-H opened this issue Oct 31, 2024 · 2 comments · Fixed by #10153
Closed
5 tasks done

Error message received when I upload PDF #10127

Rain-H opened this issue Oct 31, 2024 · 2 comments · Fixed by #10153
Assignees
Labels
🐞 bug Something isn't working

Comments

@Rain-H
Copy link

Rain-H commented Oct 31, 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.10.2

Cloud or Self Hosted

Cloud

Steps to reproduce

When I upload a file (a PDF file with picture and text) to knowledge, it will give me the error message like below
Screenshot 2024-10-31 at 5 55 31 PM

✔️ Expected Behavior

Preprocess and clean my document.

❌ Actual Behavior

error message

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

dosubot bot commented Oct 31, 2024

Hello, @Rain-H! I'm here to assist you with any bugs, questions, or contributions you might have. Let's work together to resolve the issue you're experiencing.

I found two similar discussions that might be relevant to your issue:

  1. TypeError: argument should be a bytes-like object or ASCII string, not 'list' - This discussion is still open and might provide insights into similar error messages related to file uploads [1].

  2. 知识库上传文件报错 - This discussion is also open and involves errors encountered during file uploads, although it is in Chinese [2].

For handling PDF files with mixed content types (text and images), Dify uses a combination of nodes to process different file types. You might want to ensure that the List Operation node is correctly configured to handle both document and image files, directing them to the appropriate processing nodes [3].

If the error persists, it could be related to the Document Extractor node's inability to process certain PDF features. Make sure that the PDF file adheres to the supported formats and size limitations, such as a maximum file size of 15MB and a limit of 10 files uploaded simultaneously [4].

To continue talking to Dosu, mention @dosu.

@JohnJyong
Copy link
Contributor

thanks for your feedback, this issue will be fixed with the linked pr .

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