ruvnet/ruflo · error
Unknown action: ${action}
Error message
Unknown action: ${action} What it means
The request's action parameter matched none of the switch cases in the publish-registry function (publish, export-model, import-model, rate, etc.). Dispatch guard: the caller sent an unsupported or misspelled action name, which is echoed back in the 400 response.
Source
Thrown at v3/@claude-flow/cli/cloud-functions/publish-registry/index.js:490
const [content] = await ratingsFile.download();
const ratings = JSON.parse(content.toString());
results[itemId] = {
average: Math.round(ratings.average * 10) / 10,
count: ratings.count,
};
} else {
results[itemId] = { average: 0, count: 0 };
}
} catch {
results[itemId] = { average: 0, count: 0 };
}
}
return res.json(results);
}
default:
return res.status(400).json({ error: `Unknown action: ${action}` });
}
} catch (error) {
console.error('Function error:', error);
return res.status(500).json({ error: error.message });
}
}
// For local testing
export { signRegistry, fetchNpmStats, trackEvent };
View on GitHub (pinned to fa13ee4ad6)
Solutions
- Inspect the underlying cause in logs, fix the root issue, and retry the operation.
- Validate inputs and preconditions before invoking this code path so the error is avoided.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at v3/@claude-flow/cli/cloud-functions/publish-registry/index.js:490 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/47466802893e29a2.
Report an issue: GitHub.