MastraAI

M

MastraAI

The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.

Join

"Internal agent did not generate structured output"

I am getting: ``` [StructuredOutputProcessor] Structuring failed: Internal agent did not generate structured output [StructuredOutputProcessor] Structured output processing failed: [StructuredOutputProcessor] Structuring failed: Internal agent did not generate structured output...

Better errors please!!

Hey guys, Can we better errors in mastra!! Though we are novice to webstreams, but can work on the information in errors. But this does not help me at all. ```ERROR [2025-10-03 21:10:37.593 +0530] (Mastra): Error in agent stream runId: "1a6b58be-52d0-4c76-b3d4-a1708f1d69d8"...

Removing the expected functionality for generate broke my workflow

I'm curious why generate is now just the lightest weight wrapper around stream (https://github.com/mastra-ai/mastra/blob/01605282391c6be2c570f9fdcc808e2b063806cd/packages/core/src/agent/agent.ts#L3307). This feels like an opinionated choice, but it was both not made transparent that when you use generate you are now actually using stream (which ended up breaking our workflow) and not justified as to why this opinion is held. By using the function call generate one would expect a different underl...

Langfuse tracing not working

I'm getting errors from the langfuse SDK when trying to enable the langfuse tracing: [Langfuse SDK] Unknown error: SyntaxError: Failed to parse JSON at json (null) at processTicksAndRejections (null)...

Updated to Mastra 0.19 everything breaks

This is starting to feel like a reoccuring pattern. I am avoiding updating mastra now because every-time a new release is pushed it feels like it is not tested, and it introduces new issues that break our existing workflows. There is no context here, this is just the output we are getting. Worked fine in 0.16.0, and now its broken. Version 0.17.0 and 0.18.0 were also broken so we omited updating to thoes versions, but now we are missing out on core features because they get added in future versions, that have regressive behaviors. ```...

'C:\Program' is not recognized as an internal or external command

I’m running into an error when starting my dev server.
npm run dev
mastra dev
...

Mastra dev server fails to start after new update

◐ Preparing development environment... ✓ Initial bundle complete ◇ Starting Mastra dev server... 'C:\Program' is not recognized as an internal or external command, operable program or batch file....

mastra is not retrieving `waitForEvent` workflow snapshots

I have following scenario: 1. Workflow is paused with waitForEvent ; a new record appears in DB table mastra_workflow_snapshot , that is good. 2. then I restart mastra server and send sendEvent with the runId from that record. But receive error: "Workflow run not found". ...

Error in streamVNext generate: Unknown error

I have a mastra cloud instance that is giving this cryptic error. Locally everything works. Not sure how to debug..

Error write EPIPE on brand new repo

hey @Ward, I'm trying to start a brand new repo with today's release of mastra 0.19.1 (clean postgres, no tools, no workflow, 1 example agent only) and this error is showing before the local server starts: ```◇ Starting Mastra dev server... node:events:496 throw er; // Unhandled 'error' event ^...
No description

Duplicate Requests from Mastra Agent Causing Gateway Timeout

Hi everyone, I’m encountering an issue with the Mastra agent where it seems to attempt regenerating messages multiple times, resulting in 2–3 identical requests for the same output. This is causing a Gateway Timeout error (504) in my application. Here’s a snippet of the error:...
No description

Agent Unknown Error

Hey team, any tips for finding the root cause of errors like this? Using ai-sdk v5, with agent streamVNext

Error in LLM Execution Step TypeError: terminated

After upgrading to the Mastra versions and AI SDK v5 : "@mastra/core": "^0.17.1", "@mastra/langfuse": "^0.0.9", "@mastra/libsql": "^0.14.2",...

ERR_MODULE_NOT_FOUND when running `mastra dev`

Hey folks, Have recently started getting the above when running mastra dev. We didn't get it before, and we think it's because the @cubejs-client/core package doesn't have file extensions on its imports. We run Mastra in Next with mastra dev --dir src/mastra. Any way around this one? It worked previously, so not sure if you've made any bundler changes....

Mastra Cloud deploy stuck at builder.deployKnative

I removed the Port from my env but it's still stuck on this step.

zod 4 support

i recently upgraded to zod 4 and upgraded all mastra packages as a i saw zod 4 is supported now. i am now running in this issue when running mastra dev ```...

How to transform MastraMessageV1 or MastraMessageV2 to aisdk format

Do we have any example of such conversion? or how do we use MastraMessage type in frontend?

mastra cloud deployment fail npm install

npm error ERESOLVE could not resolve npm error npm error While resolving: server@1.0.0 npm error Found: @mastra/core@0.13.2 npm error node_modules/@mastra/core...

Working memory with structured outputs does not seem to work.

Not sure if I am missing something here, but I cannot get the agent.generate to trigger the working memory tool. The tool is being called from in a workflow. The closest I have gotten is a bug where the workflow crashes because the agent returns the schema of the working memory instead of the one it is supposed to return as part of the normal message response....