[Error: Error: No object generated: could not parse the response.]
I am getting the error in the title and not sure why. I suspect it is again masking some more useful error. Any advice?
5 Replies
๐ Created GitHub issue: https://github.com/mastra-ai/mastra/issues/9652
GitHub
[DISCORD:1434894989229297768] [Error: Error: No object generated: c...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1434894989229297768 I am getting the error in the title and not sure why. I suspect it is again masking so...
I think after updating mastra the error changed to: "Error executing step visual-design-quality-analysis-step: Error: Visual analysis failed: visualDesignQualityAgent returned no response object"
Here is the stacktrace:
Error executing step visual-design-quality-analysis-step: Error: Visual analysis failed: visualDesignQualityAgent returned no response object
at executeVisualAnalysis (/Users/path/to/project/.next/server/chunks/[root-of-the-server]6845ad15._.js:7213:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Object.execute (/Users/path/to/project/.next/server/chunks/[root-of-the-server]6845ad15..js:8714:49)
at async DefaultExecutionEngine.executeStep (/Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F68542db8.js:2926:32)
at async /Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F68542db8.js:3192:28
at async Promise.all (index 4)
at async DefaultExecutionEngine.executeParallel (/Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F68542db8.js:3191:25)
at async DefaultExecutionEngine.executeEntry (/Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F68542db8.js:3947:27)
at async DefaultExecutionEngine.execute (/Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F_68542db8.js:2510:30)
at async Run.start (/Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F68542db8.js:5384:24)
at async Object.start (/Users/path/to/project/.next/server/chunks/ef09e@mastra_core_dist_chunk-EEPYVE6F_68542db8.js:5578:40)
Hey @Ville ! Could you share a reproducible example with us? Thanks ๐
This was apparently OpenAI quota problem in the end. I think this is still not properly fixed: https://github.com/mastra-ai/mastra/issues/7940
Very often when something happens with the API, it is not possible to know from the error message wether it is a bug in Mastra or some OpenAI issue or what. Especially since the error changed when updating Mastra was pretty wtf moment.
I think it would really make sense to clear the way for API errors to bubble as is. As you saw your self (I presume since you asked for repro instead of pointing it being an API error), it was not possible to know where the error came from. I spent a day trying to figure this out while a proper bubbled error would've been clear in a few seconds.
GitHub
[DISCORD:1417797293305761882] Mastra masks useful errors ยท Issue #...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1417797293305761882 Mastra tends to give "Unknown error" for valid errors such as when the promp...
This is one of those friction point issues (along with poor type safety) that hinders the usage of the framework quite a bit. With lighter weight libraries it is easier to figure out where the failure happens, especially since they let the errors bubble as is.