./raj
./raj3w ago

Transient error while executing action when doing a agent.generateText

basically what breaks is:
console.debug('Calling product agent to generate assets');
await Promise.race([
productAgent.generateText(
{ ...ctx, orgId: args.orgId, versionId: args.versionId },
{
userId,
},
{
// model: openrouter.chat('google/gemini-2.5-pro'),
messages: contextMessages,
stopWhen: stepCountIs(10), // Allow multiple tool calls for generating various assets
tools: {
generateNewAsset,
// getAssetDetails,
// listAssetsForVersion,
},
abortSignal: abortController.signal,
}
),
new Promise<never>((_, reject) => {
timeoutId = setTimeout(() => {
abortController.abort();
reject(
new ConvexError(
'Asset generation timed out after 500 seconds. Please try again.'
)
);
}, timeoutMs);
}),
]);
console.debug('Calling product agent to generate assets');
await Promise.race([
productAgent.generateText(
{ ...ctx, orgId: args.orgId, versionId: args.versionId },
{
userId,
},
{
// model: openrouter.chat('google/gemini-2.5-pro'),
messages: contextMessages,
stopWhen: stepCountIs(10), // Allow multiple tool calls for generating various assets
tools: {
generateNewAsset,
// getAssetDetails,
// listAssetsForVersion,
},
abortSignal: abortController.signal,
}
),
new Promise<never>((_, reject) => {
timeoutId = setTimeout(() => {
abortController.abort();
reject(
new ConvexError(
'Asset generation timed out after 500 seconds. Please try again.'
)
);
}, timeoutMs);
}),
]);
i get the log: 'Calling product agent to generate assets', but after that i get:
10/25/2025, 1:51:07 AM [CONVEX A(products/ai/actions/generation_actions:autoGenProductAssets)] Transient error while executing action
10/25/2025, 1:51:07 AM [CONVEX A(products/ai/actions/generation_actions:autoGenProductAssets)] Transient error while executing action
and i hv retry implemented, every try fails
1 Reply
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?