error on unstructured tool #884

Closed
opened 2026-02-16 10:20:50 -05:00 by yindo · 2 comments
Owner

Originally created by @nicho2 on GitHub (Dec 19, 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 Dify issues & Dify Official Plugins, 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.11.1

Plugin version

0.0.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have unstructured platform in self hosted container (v0.0.90).
i try to do a pipeline and extract text and image. but i have the error below (To test i use a pdf with text and image)

Image

✔️ Error log

Node Error

An error occurred in the langgenius/unstructured/unstructured, please contact the author of langgenius/unstructured/unstructured for help, error type: Exception, error details: Partition request failed. msg:'image_base64'

unstructured logs;

2025-12-19 09:01:47,323 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 9, "include_slide_notes": true}

2025-12-19 09:01:47,324 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 5, "include_slide_notes": true}

2025-12-19 09:01:47,324 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 7, "include_slide_notes": true}

2025-12-19 09:01:47,324 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 1, "include_slide_notes": true}

2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf

2025-12-19 09:01:47,325 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 3, "include_slide_notes": true}

2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf

2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf

2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf

2025-12-19 09:01:47,326 unstructured_api DEBUG filetype: application/pdf

2025-12-19 09:01:47,340 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true}

2025-12-19 09:01:47,352 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true}

2025-12-19 09:01:47,358 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true}

2025-12-19 09:01:47,371 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true}

2025-12-19 09:01:47,371 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead.

2025-12-19 09:01:47,371 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead.

2025-12-19 09:01:47,371 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead.

2025-12-19 09:01:47,382 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead.

2025-12-19 09:01:47,386 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true}

2025-12-19 09:01:47,428 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead.

2025-12-19 09:01:48,236 unstructured_inference INFO Reading PDF for file: /tmp/tmp7n0x8k1z/document ...

2025-12-19 09:01:50,384 unstructured_inference INFO Reading PDF for file: /tmp/tmppe35ks__/document ...

2025-12-19 09:01:51,120 unstructured_inference INFO Reading PDF for file: /tmp/tmpu3i8lnai/document ...

2025-12-19 09:01:51,126 unstructured_inference INFO Reading PDF for file: /tmp/tmpj4o22rzc/document ...

2025-12-19 09:01:51,770 unstructured_inference INFO Reading PDF for file: /tmp/tmpe1d3cn7e/document ...

2025-12-19 09:01:58,042 192.168.96.1:52168 POST /general/v0/general HTTP/1.1 - 200 OK

2025-12-19 09:02:00,979 192.168.96.1:52136 POST /general/v0/general HTTP/1.1 - 200 OK

2025-12-19 09:02:02,112 192.168.96.1:52162 POST /general/v0/general HTTP/1.1 - 200 OK

2025-12-19 09:02:02,183 192.168.96.1:52130 POST /general/v0/general HTTP/1.1 - 200 OK

2025-12-19 09:02:03,518 192.168.96.1:52152 POST /general/v0/general HTTP/1.1 - 200 OK
Originally created by @nicho2 on GitHub (Dec 19, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.11.1 ### Plugin version 0.0.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I have unstructured platform in self hosted container (v0.0.90). i try to do a pipeline and extract text and image. but i have the error below (To test i use a pdf with text and image) <img width="1211" height="562" alt="Image" src="https://github.com/user-attachments/assets/a3fddbbb-ae6a-49f1-943e-b174fd03d4e3" /> ### ✔️ Error log Node Error An error occurred in the langgenius/unstructured/unstructured, please contact the author of langgenius/unstructured/unstructured for help, error type: Exception, error details: Partition request failed. msg:'image_base64' unstructured logs; 2025-12-19 09:01:47,323 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 9, "include_slide_notes": true} 2025-12-19 09:01:47,324 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 5, "include_slide_notes": true} 2025-12-19 09:01:47,324 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 7, "include_slide_notes": true} 2025-12-19 09:01:47,324 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 1, "include_slide_notes": true} 2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf 2025-12-19 09:01:47,325 unstructured_api DEBUG pipeline_api input params: {"filename": "S000120125FR-3.pdf", "response_type": "application/json", "coordinates": false, "encoding": "utf-8", "hi_res_model_name": null, "include_page_breaks": false, "ocr_languages": null, "pdf_infer_table_structure": true, "skip_infer_table_types": [], "strategy": "hi_res", "xml_keep_tags": false, "languages": null, "extract_image_block_types": null, "unique_element_ids": false, "chunking_strategy": null, "combine_under_n_chars": null, "max_characters": 500, "multipage_sections": true, "new_after_n_chars": null, "overlap": 0, "overlap_all": false, "starting_page_number": 3, "include_slide_notes": true} 2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf 2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf 2025-12-19 09:01:47,325 unstructured_api DEBUG filetype: application/pdf 2025-12-19 09:01:47,326 unstructured_api DEBUG filetype: application/pdf 2025-12-19 09:01:47,340 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true} 2025-12-19 09:01:47,352 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true} 2025-12-19 09:01:47,358 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true} 2025-12-19 09:01:47,371 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true} 2025-12-19 09:01:47,371 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead. 2025-12-19 09:01:47,371 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead. 2025-12-19 09:01:47,371 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead. 2025-12-19 09:01:47,382 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead. 2025-12-19 09:01:47,386 unstructured_api DEBUG partition input data: {"content_type": "application/pdf", "strategy": "hi_res", "ocr_languages": null, "coordinates": false, "pdf_infer_table_structure": true, "include_page_breaks": false, "encoding": "utf-8", "hi_res_model_name": null, "xml_keep_tags": false, "skip_infer_table_types": [], "languages": null, "chunking_strategy": null, "multipage_sections": true, "combine_under_n_chars": null, "new_after_n_chars": null, "max_characters": 500, "overlap": 0, "overlap_all": false, "extract_image_block_types": null, "extract_image_block_to_payload": false, "unique_element_ids": false, "include_slide_notes": true} 2025-12-19 09:01:47,428 unstructured WARNING The pdf_infer_table_structure kwarg is deprecated. Please use skip_infer_table_types instead. 2025-12-19 09:01:48,236 unstructured_inference INFO Reading PDF for file: /tmp/tmp7n0x8k1z/document ... 2025-12-19 09:01:50,384 unstructured_inference INFO Reading PDF for file: /tmp/tmppe35ks__/document ... 2025-12-19 09:01:51,120 unstructured_inference INFO Reading PDF for file: /tmp/tmpu3i8lnai/document ... 2025-12-19 09:01:51,126 unstructured_inference INFO Reading PDF for file: /tmp/tmpj4o22rzc/document ... 2025-12-19 09:01:51,770 unstructured_inference INFO Reading PDF for file: /tmp/tmpe1d3cn7e/document ... 2025-12-19 09:01:58,042 192.168.96.1:52168 POST /general/v0/general HTTP/1.1 - 200 OK 2025-12-19 09:02:00,979 192.168.96.1:52136 POST /general/v0/general HTTP/1.1 - 200 OK 2025-12-19 09:02:02,112 192.168.96.1:52162 POST /general/v0/general HTTP/1.1 - 200 OK 2025-12-19 09:02:02,183 192.168.96.1:52130 POST /general/v0/general HTTP/1.1 - 200 OK 2025-12-19 09:02:03,518 192.168.96.1:52152 POST /general/v0/general HTTP/1.1 - 200 OK
yindo added the bug label 2026-02-16 10:20:50 -05:00
yindo closed this issue 2026-02-16 10:20:50 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 19, 2025):

The error is caused when the plugin tries to decode an image from the partition response, but the expected image_base64 field is missing or malformed. This usually happens if the partition API doesn't return image data in the expected format, often because the extract_image_block_types parameter is set to null instead of ["Image"]—which means no images are extracted and the field is absent, triggering the decoding error in the plugin code (source).

To fix this, set extract_image_block_types to ["Image"] in your pipeline configuration so the partition API includes base64-encoded image data for each image element. Also, replace the deprecated pdf_infer_table_structure parameter with skip_infer_table_types to avoid warnings and potential compatibility issues (source).

If you still see the error, check the partition API response directly to confirm whether image elements have a valid image_base64 field. If not, try a minimal test PDF with both text and images and explicit image extraction settings to isolate the issue. Compatibility between Dify, the plugin, and the unstructured platform may also affect the response structure.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 19, 2025): <!-- Answer --> The error is caused when the plugin tries to decode an image from the partition response, but the expected `image_base64` field is missing or malformed. This usually happens if the partition API doesn't return image data in the expected format, often because the `extract_image_block_types` parameter is set to `null` instead of `["Image"]`—which means no images are extracted and the field is absent, triggering the decoding error in the plugin code ([source](https://github.com/langgenius/dify-official-plugins/blob/6ec14c4625f9095fe84ea7a616f5a119fc04627a/tools/unstructured/tools/partition.py#L83-L193)). To fix this, set `extract_image_block_types` to `["Image"]` in your pipeline configuration so the partition API includes base64-encoded image data for each image element. Also, replace the deprecated `pdf_infer_table_structure` parameter with `skip_infer_table_types` to avoid warnings and potential compatibility issues ([source](https://github.com/langgenius/dify-official-plugins/blob/6ec14c4625f9095fe84ea7a616f5a119fc04627a/tools/unstructured/README.md#L26-L259)). If you still see the error, check the partition API response directly to confirm whether image elements have a valid `image_base64` field. If not, try a minimal test PDF with both text and images and explicit image extraction settings to isolate the issue. Compatibility between Dify, the plugin, and the unstructured platform may also affect the response structure. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/03fb8be2-146e-4354-9b52-9e5d3b1b199e?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20is%20caused%20when%20the%20plugin%20tries%20to%20decode%20an%20image%20from%20the%20partition%20response%2C%20but%20the%20expected%20%60image_base64%60%20field%20is%20missing%20or%20malformed.%20This%20usually%20happens%20if%20the%20partition%20API%20doesn%27t%20return%20image%20data%20in%20the%20expected%20format%2C%20often%20because%20the%20%60extract_image_block_types%60%20parameter%20is%20set%20to%20%60null%60%20instead%20of%20%60%5B%22Image%22%5D%60%E2%80%94which%20means%20no%20images%20are%20extracted%20and%20the%20field%20is%20absent%2C%20triggering%20the%20decoding%20error%20in%20the%20plugin%20code%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/6ec14c4625f9095fe84ea7a616f5a119fc04627a/tools/unstructured/tools/partition.py%23L83-L193%29%29.%0A%0ATo%20fix%20this%2C%20set%20%60extract_image_block_types%60%20to%20%60%5B%22Image%22%5D%60%20in%20your%20pipeline%20configuration%20so%20the%20partition%20API%20includes%20base64-encoded%20image%20data%20for%20each%20image%20element.%20Also%2C%20replace%20the%20deprecated%20%60pdf_infer_table_structure%60%20parameter%20with%20%60skip_infer_table_types%60%20to%20avoid%20warnings%20and%20potential%20compatibility%20issues%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/6ec14c4625f9095fe84ea7a616f5a119fc04627a/tools/unstructured/README.md%23L26-L259%29%29.%0A%0AIf%20you%20still%20see%20the%20error%2C%20check%20the%20partition%20API%20response%20directly%20to%20confirm%20whether%20image%20elements%20have%20a%20valid%20%60image_base64%60%20field.%20If%20not%2C%20try%20a%20minimal%20test%20PDF%20with%20both%20text%20and%20images%20and%20explicit%20image%20extraction%20settings%20to%20isolate%20the%20issue.%20Compatibility%20between%20Dify%2C%20the%20plugin%2C%20and%20the%20unstructured%20platform%20may%20also%20affect%20the%20response%20structure.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2292)
Author
Owner

@davidkhala commented on GitHub (Jan 19, 2026):

+1 for seeing the same error when using cloud endpoint.
https://platform.unstructuredapp.io/api/v1

My workaround is to set Chunking Strategy to basic

@davidkhala commented on GitHub (Jan 19, 2026): +1 for seeing the same error when using cloud endpoint. https://platform.unstructuredapp.io/api/v1 My workaround is to set **Chunking Strategy** to `basic`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#884