Skip to content

OpenMemory infer=true fails with 'list' object has no attribute 'replace' (Qdrant path) #4100

@0vermind

Description

@0vermind

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

  1. Configure OpenMemory with Ollama LLM + embedder, Qdrant backend.
  2. Call POST /api/v1/memories/ with infer=true.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions