---
title: "Discussion on \"Mastra 'invocation.errorText?.trim is not a function': fixed in @mastra/memory 1.39.1\" | Hashnode"
description: "Discussion on \"Mastra 'invocation.errorText?.trim is not a function': fixed in @mastra/memory 1.39.1\". A stored failed tool call with an object-valued errorText stopped Observational Memory on every later turn. Upgrade, and mind the @mastra/core peer bump."
url: "https://hashnode.com/posts/mastra-observational-memory-errortext-trim-is-not-a-function/6af1f284708c8fd780a14add"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mastra 'invocation.errorText?.trim is not a function': fixed in @mastra/memory 1.39.1](https://memorysync.hashnode.dev/mastra-observational-memory-errortext-trim-is-not-a-function?utm_source=hashnode&utm_medium=feed)

A stored failed tool call with an object-valued errorText stopped Observational Memory on every later turn. Upgrade, and mind the @mastra/core peer bump.

4d ago · 4 min read · memorysync.hashnode.dev  
Read the article

-   [#mastra](https://hashnode.com/tag/mastra)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#ai](https://hashnode.com/tag/ai)
-   [#agents](https://hashnode.com/tag/agents)
-   [#memory](https://hashnode.com/tag/memory)

## Written by

[MemorySync](https://hashnode.com/@memorysync)

@memorysync · San Francisco, USA

  
[View profile](https://hashnode.com/@memorysync)

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
