Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix(qdrant): handle 401/403 in ensureCollection for scoped JWTs (#4356)

Huvee9eb5b9ed29b1
diff --git a/mem0-ts/src/oss/src/vector_stores/qdrant.ts b/mem0-ts/src/oss/src/vector_stores/qdrant.ts
index c1eed1ef8..d0ac42d64 100644
--- a/mem0-ts/src/oss/src/vector_stores/qdrant.ts
+++ b/mem0-ts/src/oss/src/vector_stores/qdrant.ts
@@ -282,7 +282,7 @@ export class Qdrant implements VectorStore {
},
});
} catch (error: any) {
- if (error?.status === 409) {
+ if (error?.status === 409 || error?.status === 401 || error?.status === 403) {
// Collection already exists — verify configuration for the main collection
if (name === this.collectionName) {
try {