memU icon indicating copy to clipboard operation
memU copied to clipboard

unexpected error when call /api/v1/memory/memorize

Open sugopher opened this issue 4 months ago • 0 comments

Only occurs in some unkown circumstances

2025-09-15 07:00:08 | memu.memory.memory_agent:306 | INFO |     Function time used: 2.46 seconds
2025-09-15 07:00:08 | memu.memory.memory_agent:246 | INFO | 🔄 Iteration 6/20
2025-09-15 07:00:10 | memu.memory.memory_agent:297 | INFO | 🔧 Calling function: link_related_memories
2025-09-15 07:00:10 | memu.memory.memory_agent:306 | INFO |     Function time used: 0.29 seconds
2025-09-15 07:00:10 | memu.memory.memory_agent:246 | INFO | 🔄 Iteration 8/20
2025-09-15 07:00:16 | memu.memory.memory_agent:297 | INFO | 🔧 Calling function: cluster_memories
2025-09-15 07:00:18 | memu.memory.memory_agent:450 | ERROR | Function call failed: cluster_memories - ValueError('not enough values to unpack (expected 2, got 1)')
Traceback (most recent call last):
  File "/app/memu/memory/memory_agent.py", line 438, in call_function
    result = action.execute(**arguments)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/memu/memory/actions/cluster_memories.py", line 75, in execute
    updated_clusters = self._merge_existing_clusters(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/memu/memory/actions/cluster_memories.py", line 174, in _merge_existing_clusters
    memory_id, clusters = line[2:].split(": ", 1)
    ^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
2025-09-15 07:00:18 | memu.memory.memory_agent:306 | INFO |     Function time used: 2.22 seconds
2025-09-15 07:00:18 | memu.memory.memory_agent:246 | INFO | 🔄 Iteration 9/20
2025-09-15 07:00:19 | memu.memory.memory_agent:297 | INFO | 🔧 Calling function: run_theory_of_mind
2025-09-15 07:00:28 | memu.memory.memory_agent:272 | INFO | ✅ LLM indicated processing is complete
2025-09-15 07:00:28 | memu.memory.memory_agent:361 | INFO | 🎉 Conversation processing completed after 9 iterations
2025-09-15 07:00:28 | memu.memory.memory_agent:365 | INFO | 🔧 Made 8 function calls

sugopher avatar Sep 15 '25 07:09 sugopher