{"record":{"id":"88a45f8af2506096","repo":"Mintplex-Labs/anything-llm","slug":"no-namespace-value-provided","errorCode":null,"errorMessage":"No namespace value provided.","messagePattern":"No namespace value provided\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/utils/vectorDbProviders/qdrant/index.js","lineNumber":104,"sourceCode":"          \"QDrant: A source was filtered from context as it's parent document is pinned.\"\n        );\n        return;\n      }\n\n      result.contextTexts.push(response?.payload?.text || \"\");\n      result.sourceDocuments.push({\n        ...(response?.payload || {}),\n        id: response.id,\n        score: response.score,\n      });\n      result.scores.push(response.score);\n    });\n\n    return result;\n  }\n\n  async namespace(client, namespace = null) {\n    if (!namespace) throw new Error(\"No namespace value provided.\");\n    const collection = await client.getCollection(namespace).catch(() => null);\n    if (!collection) return null;\n\n    return {\n      name: namespace,\n      ...collection,\n      vectorCount: (await client.count(namespace, { exact: true })).count,\n    };\n  }\n\n  async hasNamespace(namespace = null) {\n    if (!namespace) return false;\n    const { client } = await this.connect();\n    return await this.namespaceExists(client, namespace);\n  }\n\n  async namespaceExists(client, namespace = null) {\n    if (!namespace) throw new Error(\"No namespace value provided.\");","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/server/utils/vectorDbProviders/qdrant/index.js#L86-L122","documentation":"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.","triggerScenarios":"A QDrant operation was called without a required namespace.","commonSituations":"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.","solutions":["Pass a namespace value with the request."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3aec848f2885144aa8f1e53b9731a04310d5d558","analyzedAt":"2026-08-18T10:02:21.017Z","contentChangedAt":"2026-08-18T10:02:21.017Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}