Skip to content

Docker image health endpoint reports outdated version (0.5.1-d1 instead of 0.7.8) #1686

@chansearrington

Description

@chansearrington

Description

The Docker image unclecode/crawl4ai:latest (and the 0.7.8 tag) reports an outdated version string in the /health endpoint.

Expected Behavior

The health endpoint should report 0.7.8 (matching the actual installed crawl4ai package version).

Actual Behavior

{"status":"ok","timestamp":1766952677.448533,"version":"0.5.1-d1"}

Root Cause

In /app/server.py line 76, the version is hardcoded:

__version__ = "0.5.1-d1"

This string was not updated when the Docker image was rebuilt with crawl4ai 0.7.8.

Verification

The pip package inside the container is correctly version 0.7.8:

$ pip show crawl4ai
Name: Crawl4AI
Version: 0.7.8

And 0.7.x features like MemoryAdaptiveDispatcher are present and used in the server code. So the actual functionality is 0.7.8 — only the version label is stale.

Suggested Fix

Update line 76 in server.py to read the version from the crawl4ai package:

from crawl4ai import __version__

Or dynamically:

import crawl4ai
__version__ = crawl4ai.__version__

This would prevent the version string from drifting in future releases.

Environment

  • Docker image: unclecode/crawl4ai:latest (sha256:5ad0b26e6e416...)
  • Image date: Dec 11, 2025
  • Host OS: Unraid (Linux)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions