M
MastraAI•4w ago
flippyhead

Cannot use networks in playground due to resourceId missing

I have a simple network and I'm not able to use it in the playground due to this error: Unknown Error: TypeError: Cannot read properties of undefined (reading 'resourceId') The docs say mastra will pass resourceId automatically but I am stuck
6 Replies
flippyhead
flippyheadOP•4w ago
Is there any examples of how to correctly use networks? The docs seem to have none. @Abhi Aiyer you previously had said that the last release was chaning a bunch of stuff in how networks worked I cannot tell if I have hit a bug or am just using it incorrectly. Here is the stacktrace, fwiw:
TypeError: Cannot read properties of undefined (reading 'resourceId') at Object.execute (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/network/vNext/index.js:477:34) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async DefaultExecutionEngine.executeStep (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:207:3507) at async DefaultExecutionEngine.executeEntry (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:215:359) at async DefaultExecutionEngine.execute (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:205:904) at async Run._start (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:283:533)
TypeError: Cannot read properties of undefined (reading 'resourceId') at Object.execute (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/network/vNext/index.js:477:34) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async DefaultExecutionEngine.executeStep (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:207:3507) at async DefaultExecutionEngine.executeEntry (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:215:359) at async DefaultExecutionEngine.execute (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:205:904) at async Run._start (file:///Users/peterbrown/Development/already-app/node_modules/.pnpm/@mastra+core@0.18.0_openapi-types@12.1.3_react@19.1.1_zod@3.25.76/node_modules/@mastra/core/dist/chunk-2ZSMA4EM.js:283:533)
_roamin_
_roamin_•4w ago
Hi @flippyhead ! There's a bug that was fixed yesterday. Fix will be available in the next alpha/stable release 😉
flippyhead
flippyheadOP•4w ago
ack, ok. I guess that's good! @Romain Are there any examples or any docs in detail that better explain how we're expected to use these networks?
_roamin_
_roamin_•4w ago
The docs are still WIP, we have not "officially" released the new network implementation. There's basically only this page at the moment https://mastra.ai/en/reference/agents/network
Reference: Agent.network() (Experimental) | Agents | Mastra Docs
Documentation for the Agent.network() method in Mastra agents, which enables multi-agent collaboration and routing.
flippyhead
flippyheadOP•4w ago
Yeah it was those docs I was seeing which seem to have very little detail. We'll keep waiting. Thank you
Unknown User
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?