mem0ai/mem0 · error · Error
Failed to list vectors: ${error instanceof Error ? error.mes
Error message
Failed to list vectors: ${error instanceof Error ? error.message : String(error)} What it means
Error "Failed to list vectors: ${error instanceof Error ? error.message : String(error)}" thrown in mem0ai/mem0.
Source
Thrown at mem0-ts/src/oss/src/vector_stores/vectorize.ts:247
account_id: this.accountId,
vector: Array(this.dimensions).fill(0), // Dummy vector for listing
filter: filters,
topK: topK,
returnMetadata: "all",
},
);
const matches =
(result?.matches?.map((match) => ({
id: match.id,
payload: match.metadata,
score: match.score,
})) as VectorStoreResult[]) || [];
return [matches, matches.length];
} catch (error) {
console.error("Error listing vectors:", error);
throw new Error(
`Failed to list vectors: ${error instanceof Error ? error.message : String(error)}`,
);
}
}
private generateUUID(): string {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
/[xy]/g,
function (c) {
const r = (Math.random() * 16) | 0;
const v = c === "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
},
);
}
async getUserId(): Promise<string> {
await this.initialize();View on GitHub (pinned to 001c235229)
Solutions
- Verify your Cloudflare account ID and API token have Vectorize read permissions.
- Check that the index exists and the cursor/filters passed to list are valid.
- Retry transient network failures with backoff.
When it happens
Trigger: Thrown at mem0-ts/src/oss/src/vector_stores/vectorize.ts:247 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of mem0ai/mem0@001c235229 (2026-08-15).
Data as JSON: /api/errors/f1e42be4686ad244.
Report an issue: GitHub.