Skip to content

Error building component Docling Serve #10754

@guyver30

Description

@guyver30

Bug Description

Testing Docling Serve in Langflow, but stops because of error

Error building Component Docling Serve:

called add_log but no component context found

Traceback (most recent call last):
File "", line 207, in _convert_document
File "/app/.venv/lib/python3.12/site-packages/pydantic/main.py", line 627, in model_validate
return cls.pydantic_validator.validate_python(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 213 validation errors for DoclingDocument
version
Value error, Doc version 1.8.0 incompatible with SDK schema version 1.7.0 [type=value_error, input_value='1.8.0', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/value_error
furniture.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
body.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.0.TitleItem.label
Input should be <DocItemLabel.TITLE: 'title'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.0.TitleItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.0.SectionHeaderItem.label
Input should be <DocItemLabel.SECTION_HEADER: 'section_header'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.0.SectionHeaderItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.0.ListItem.label
Input should be <DocItemLabel.LIST_ITEM: 'list_item'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.0.ListItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.0.CodeItem.label
Input should be <DocItemLabel.CODE: 'code'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.0.CodeItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.0.FormulaItem.label
Input should be <DocItemLabel.FORMULA: 'formula'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.0.FormulaItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.0.TextItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.1.TitleItem.label
Input should be <DocItemLabel.TITLE: 'title'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.1.TitleItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.1.SectionHeaderItem.label
Input should be <DocItemLabel.SECTION_HEADER: 'section_header'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.1.SectionHeaderItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.1.ListItem.label
Input should be <DocItemLabel.LIST_ITEM: 'list_item'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.1.ListItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.1.CodeItem.label
Input should be <DocItemLabel.CODE: 'code'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.1.CodeItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.1.FormulaItem.label
Input should be <DocItemLabel.FORMULA: 'formula'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.1.FormulaItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.1.TextItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden
texts.2.TitleItem.label
Input should be <DocItemLabel.TITLE: 'title'> [type=literal_error, input_value='text', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/literal_error
texts.2.TitleItem.meta
Extra inputs are not permitted [type=extra_forbidden, input_value=None, input_type=NoneType]
For further information visit https://er...

Reproduction

  1. Installed Langflow 1.6.8 as standard docker package
  2. installed Docling serve 1.8.0 as standard docker package (per github instructions)
  3. Tested Docling serve using postman, running fine
  4. Added Docling serve in a flow (replacing Docling component as in https://docs.langflow.org/bundles-docling)
  5. pointing server in Docling serve to http://172.17.0.2:5001 (both langflow container and docling serve container are running in the same host and same bridge network)

Expected behavior

no errors

Who can help?

No response

Operating System

Ubuntu 24.04.1 LTS under WSL2

Langflow Version

1.6.8

Python Version

None

Screenshot

No response

Flow File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions