Error saveMessagetoMemory
[Error: HTTP error! status: 400 - {"error":"Memory is not initialized"}] when calling
from mastra client sdk
5 Replies
Hey @Rafik Belkadi ! It looks like you have not setup memory on the agent you're trying to save the messages to
i did setup memory on it actually
i'll try again but pretty sure it's already set up
ye my bad i targeted the wrong env.
but even if it succeeds, the message is not inserted in the db, why ?
result array is empty, and i can't find it in my db

also, how can i in the "memory" param with semantic recall only query the memory_messages that i have saved manually ? should i create a separate retriever tool ?
@Romain
Hmm, that looks like a bug 🤔 Could you open a GH issue with a small repro example? Thanks 🙏 https://github.com/mastra-ai/mastra/issues
GitHub
mastra-ai/mastra
The TypeScript AI agent framework. ⚡ Assistants, RAG, observability. Supports any LLM: GPT-4, Claude, Gemini, Llama. - mastra-ai/mastra