crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

[Bug]: Can not use LLMTableExtraction with Docker Job Queue API

Open pbtsrc opened this issue 7 months ago • 5 comments

crawl4ai version

0.8.5

Expected Behavior

LLMTableExtraction is allowed in Docker Job Queue API

Current Behavior

ValueError: Deserialization of type 'LLMTableExtraction' is not allowed. Only allowlisted configuration and strategy types can be deserialized.

Is this reproducible?

Yes

Inputs Causing the Bug


Steps to Reproduce


Code snippets


OS

Linux

Python version

3.13

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

pbtsrc avatar Apr 16 '26 15:04 pbtsrc

I'd like to work on this, submitting a PR shortly.

sevenmoonlightsteps avatar Apr 17 '26 19:04 sevenmoonlightsteps

Hi — fix submitted in PR #1936. LLMTableExtraction was missing from ALLOWED_DESERIALIZE_TYPES in async_configs.py. One-line addition alongside DefaultTableExtraction and NoTableExtraction.

Verified in Docker: POST /crawl with LLMTableExtraction extraction strategy now returns success: true — no more allowlist ValueError.

How to test before it's merged

docker pull ghcr.io/unclecode/crawl4ai:latest  # or build from the PR branch

hafezparast avatar Apr 24 '26 04:04 hafezparast

@pbtsrc This has been fixed in PR #1925 by @sevenmoonlightsteps and merged into the develop branch. It will be in the next release soon. Thanks for reporting!

ntohidi avatar Apr 24 '26 15:04 ntohidi

Root cause

crawl4ai/async_configs.py:153 — ALLOWED_DESERIALIZE_TYPES lists DefaultTableExtraction and NoTableExtraction but not LLMTableExtraction. Simple omission when the allowlist was created.

ntohidi avatar Apr 24 '26 15:04 ntohidi

The fix is included in the latest version, 0.8.7.

ntohidi avatar Jun 01 '26 14:06 ntohidi