PaddlePaddle/PaddleOCR · error · ResponseFormatError

Batch extractResult items must contain non-empty string 'job

Error message

Batch extractResult items must contain non-empty string 'jobId'.

What it means

Error "Batch extractResult items must contain non-empty string 'jobId'." thrown in PaddlePaddle/PaddleOCR.

Source

Thrown at paddleocr/_api_client/_core.py:207

        raise ResponseFormatError(
            "Done job response resultUrl must contain non-empty string 'jsonUrl'."
        )
    return json_url


def parse_batch_status(batch_id: str, data: dict) -> BatchStatus:
    result = data.get("extractResult")
    if not isinstance(result, list):
        raise ResponseFormatError(
            "Batch response data must contain list 'extractResult'."
        )
    jobs = []
    for item in result:
        if not isinstance(item, dict):
            raise ResponseFormatError("Batch extractResult items must be objects.")
        job_id = item.get("jobId")
        if not isinstance(job_id, str) or not job_id:
            raise ResponseFormatError(
                "Batch extractResult items must contain non-empty string 'jobId'."
            )
        jobs.append(job_status_from_data(job_id, item))
    return BatchStatus(batch_id=batch_id, jobs=jobs)

View on GitHub (pinned to 2661c7c0ef)

Solutions

  1. Verify each job in the batch was submitted successfully; every extractResult item must carry a non-empty 'jobId' string.
  2. Inspect the raw batch response to find the item missing jobId.
  3. Report a server-side issue if the batch status consistently returns items without jobId.

Example fix

job_id = item.get("jobId")
if not isinstance(job_id, str) or not job_id:
    print(item)  # inspect the offending batch item

When it happens

Trigger: Raised by parse_batch_status() when a batch extractResult item lacks a non-empty string 'jobId'.

Common situations: A batch extractResult item lacked a valid 'jobId' string. Indicates a malformed server payload. Capture the raw response and retry the batch query.


AI-assisted analysis of PaddlePaddle/PaddleOCR@2661c7c0ef (2026-08-14). Data as JSON: /api/errors/68228c6334959248. Report an issue: GitHub.