fix(qdrant): handle 401/403 in ensureCollection for scoped JWTs (#4356)
This commit is contained in:
@@ -282,7 +282,7 @@ export class Qdrant implements VectorStore {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error: any) {
|
} 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
|
// Collection already exists — verify configuration for the main collection
|
||||||
if (name === this.collectionName) {
|
if (name === this.collectionName) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user