Mintplex-Labs/anything-llm · error

QDrant::Invalid Heartbeat received - is the instance online?

Error message

QDrant::Invalid Heartbeat received - is the instance online?

What it means

Health check failure in QDrant.connect(): a QdrantClient was created from QDRANT_ENDPOINT but the cluster status API did not report ok, meaning the QDrant instance is unreachable, starting up, or the endpoint/API key is wrong.

Source

Thrown at server/utils/vectorDbProviders/qdrant/index.js:32

  get name() {
    return "QDrant";
  }

  async connect() {
    if (process.env.VECTOR_DB !== "qdrant")
      throw new Error("QDrant::Invalid ENV settings");

    const client = new QdrantClient({
      url: process.env.QDRANT_ENDPOINT,
      ...(process.env.QDRANT_API_KEY
        ? { apiKey: process.env.QDRANT_API_KEY }
        : {}),
    });

    const isAlive = (await client.api("cluster")?.clusterStatus())?.ok || false;
    if (!isAlive)
      throw new Error(
        "QDrant::Invalid Heartbeat received - is the instance online?"
      );

    return { client };
  }

  async heartbeat() {
    await this.connect();
    return { heartbeat: Number(new Date()) };
  }

  async totalVectors() {
    const { client } = await this.connect();
    const { collections } = await client.getCollections();
    var totalVectors = 0;
    for (const collection of collections) {
      if (!collection || !collection.name) continue;
      totalVectors +=

View on GitHub (pinned to 3aec848f28)

Solutions

  1. Check that the QDrant instance is running and reachable.
  2. Verify the QDrant endpoint URL and API key.
Defensive patterns

Strategy: retry

When it happens

Trigger: The QDrant heartbeat check failed; the instance appears offline.

Common situations: This error is raised at runtime in server/utils/vectorDbProviders/qdrant/index.js. It occurs when the required configuration for this provider is missing or invalid (unset environment variables, empty API key or base path), when the external service is unreachable or returns an unexpected response, or when invalid input reaches the call site. To prevent it, validate the relevant provider settings and environment variables at startup and confirm the service is reachable before this code path executes.


AI-assisted analysis of Mintplex-Labs/anything-llm@3aec848f28 (2026-08-18). Data as JSON: /api/errors/699dd55cf87fe944. Report an issue: GitHub.