Error message received when I upload PDF #6480

Closed
opened 2026-02-21 18:15:56 -05:00 by yindo · 2 comments
Owner

Originally created by @Rain-H on GitHub (Oct 31, 2024).

Originally assigned to: @JohnJyong on GitHub.

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

Originally created by @Rain-H on GitHub (Oct 31, 2024). Originally assigned to: @JohnJyong on GitHub. ### 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 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 <img width="1462" alt="Screenshot 2024-10-31 at 5 55 31 PM" src="https://github.com/user-attachments/assets/3a38d811-8a0d-44a6-b38a-6ca96328ae45"> ### ✔️ Expected Behavior Preprocess and clean my document. ### ❌ Actual Behavior error message
yindo added the 🐞 bug label 2026-02-21 18:15:56 -05:00
yindo closed this issue 2026-02-21 18:15:56 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (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.

@dosubot[bot] commented on GitHub (Oct 31, 2024): <!-- Greeting --> 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. <!-- Answer --> 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'](https://github.com/langgenius/dify/discussions/3338) - This discussion is still open and might provide insights into similar error messages related to file uploads <sup>[[1]](https://github.com/langgenius/dify/discussions/3338)</sup>. 2. [知识库上传文件报错](https://github.com/langgenius/dify/discussions/3394) - This discussion is also open and involves errors encountered during file uploads, although it is in Chinese <sup>[[2]](https://github.com/langgenius/dify/discussions/3394)</sup>. 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 <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/additional-features.md)</sup>. 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 <sup>[[4]](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@JohnJyong commented on GitHub (Nov 1, 2024):

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

@JohnJyong commented on GitHub (Nov 1, 2024): thanks for your feedback, this issue will be fixed with the linked pr .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6480