Summary
On OpenMemory API (POST /api/v1/memories/) with infer=true, writes intermittently fail with:
'list' object has no attribute 'replace'.
Environment
- Host: NixOS self-hosted
- OpenMemory image in production:
mem0/openmemory-mcp:latest@sha256:3d1836...
- Canary tested: custom build from
mem0 v1.0.4 (openmemory/api)
- Vector DB: Qdrant
- Embedder: Ollama (
nomic-embed-text, 768 dims)
Repro
- Configure OpenMemory with Ollama LLM + embedder, Qdrant backend.
- Call
POST /api/v1/memories/ with infer=true.
- Repeat writes.
Observed
- Intermittent runtime error:
'list' object has no attribute 'replace'
- Endpoint involved:
POST /api/v1/memories/
Additional signal
- Canary build from source (
v1.0.4) does not reproduce list.replace error.
- It returns explicit vector mismatch when collection dims are wrong:
expected dim: 1536, got 768.
Temporary mitigation in production
- Keep gateway default
infer=false unless explicitly set.
- Fallback to Qdrant path in gateway for resilience.
Related references