Mintplex-Labs/anything-llm · error

No namespace value provided.

Error message

No namespace value provided.

What it means

Validation guard in the QDrant.namespace() helper: the namespace argument is null/empty, so there is no collection name to look up and the helper rejects the call before querying client.getCollection.

Source

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

          "QDrant: A source was filtered from context as it's parent document is pinned."
        );
        return;
      }

      result.contextTexts.push(response?.payload?.text || "");
      result.sourceDocuments.push({
        ...(response?.payload || {}),
        id: response.id,
        score: response.score,
      });
      result.scores.push(response.score);
    });

    return result;
  }

  async namespace(client, namespace = null) {
    if (!namespace) throw new Error("No namespace value provided.");
    const collection = await client.getCollection(namespace).catch(() => null);
    if (!collection) return null;

    return {
      name: namespace,
      ...collection,
      vectorCount: (await client.count(namespace, { exact: true })).count,
    };
  }

  async hasNamespace(namespace = null) {
    if (!namespace) return false;
    const { client } = await this.connect();
    return await this.namespaceExists(client, namespace);
  }

  async namespaceExists(client, namespace = null) {
    if (!namespace) throw new Error("No namespace value provided.");

View on GitHub (pinned to 3aec848f28)

Solutions

  1. Pass a namespace value with the request.
Defensive patterns

Strategy: validation

When it happens

Trigger: A QDrant operation was called without a required namespace.

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/88a45f8af2506096. Report an issue: GitHub.