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"
error: {}
ERROR [2025-10-03 21:10:37.593 +0530] (Mastra): Error in agent stream
runId: "1a6b58be-52d0-4c76-b3d4-a1708f1d69d8"
error: {}
8 Replies
_roamin_
_roamin_3w ago
Hi @Agrit Tiwari ! Could you share a small repro example for this error? Would definitely like to improve that, this is definitely not helpful!!!!
Mastra Triager
GitHub
[DISCORD:1423697886566420590] Better errors please!! · Issue #8478...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1423697886566420590 Hey guys, Can we better errors in mastra!! Though we are novice to webstreams, but can...
Agrit Tiwari
Agrit TiwariOP3w ago
I got the root cause, my openAI balance was out of credits. It sent and erros, but as I was streaming , it threw this error instead of actual error which came later while using @mastra/ai-sdk @Ward
Tyler
Tyler3w ago
@Agrit Tiwari are you using the new stream in the latest version? ( streamVNext in earlier versions)
Agrit Tiwari
Agrit TiwariOP3w ago
yes, stream, saw that streamVnext was deprecated
LekoArts
LekoArts2w ago
Can you please upgrade your Mastra packages to the latest version and try again?
_roamin_
_roamin_5d ago
Hi @Agrit Tiwari ! Were you able to test this out with the latest mastra packages?
Agrit Tiwari
Agrit TiwariOP22h ago
I did tried, it started working, but I need to follow the latest docs changes that you guys pushed to support v5

Did you find this page helpful?