multica-ai/multica · error
create runtime profile
Error message
create runtime profile: %w
What it means
Wraps the error from client.PostJSON in runRuntimeProfileCreate when POSTing the workspace's runtime-profiles path fails. Fires on transport, auth, or server rejection (e.g. duplicate profile); the cause is preserved via %w.
Solutions
- Check the server response for details and retry creating the profile.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at server/cmd/multica/cmd_runtime_profile.go:205 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/56373d7940d14121.
Report an issue: GitHub.
Appendix: source
Thrown at server/cmd/multica/cmd_runtime_profile.go:205
if err != nil {
return err
}
body := map[string]any{
"display_name": displayName,
"protocol_family": family,
"command_name": commandName,
}
if description != "" {
body["description"] = description
}
ctx, cancel := cli.APIContext(context.Background())
defer cancel()
var profile map[string]any
if err := client.PostJSON(ctx, runtimeProfilesPath(workspaceID), body, &profile); err != nil {
return fmt.Errorf("create runtime profile: %w", err)
}
return outputRuntimeProfile(cmd, profile)
}
func runRuntimeProfileUpdate(cmd *cobra.Command, args []string) error {
profileID := args[0]
body := map[string]any{}
if cmd.Flags().Changed("display-name") {
v, _ := cmd.Flags().GetString("display-name")
body["display_name"] = v
}
if cmd.Flags().Changed("command-name") {
v, _ := cmd.Flags().GetString("command-name")
body["command_name"] = v
}
if cmd.Flags().Changed("description") {
v, _ := cmd.Flags().GetString("description")View on GitHub (pinned to 2c0912b6ec)