{"record":{"id":"56373d7940d14121","repo":"multica-ai/multica","slug":"create-runtime-profile-w","errorCode":null,"errorMessage":"create runtime profile: %w","messagePattern":"create runtime profile: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_runtime_profile.go","lineNumber":205,"sourceCode":"\tif err != nil {\n\t\treturn err\n\t}\n\n\tbody := map[string]any{\n\t\t\"display_name\":    displayName,\n\t\t\"protocol_family\": family,\n\t\t\"command_name\":    commandName,\n\t}\n\tif description != \"\" {\n\t\tbody[\"description\"] = description\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tvar profile map[string]any\n\tif err := client.PostJSON(ctx, runtimeProfilesPath(workspaceID), body, &profile); err != nil {\n\t\treturn fmt.Errorf(\"create runtime profile: %w\", err)\n\t}\n\treturn outputRuntimeProfile(cmd, profile)\n}\n\nfunc runRuntimeProfileUpdate(cmd *cobra.Command, args []string) error {\n\tprofileID := args[0]\n\n\tbody := map[string]any{}\n\tif cmd.Flags().Changed(\"display-name\") {\n\t\tv, _ := cmd.Flags().GetString(\"display-name\")\n\t\tbody[\"display_name\"] = v\n\t}\n\tif cmd.Flags().Changed(\"command-name\") {\n\t\tv, _ := cmd.Flags().GetString(\"command-name\")\n\t\tbody[\"command_name\"] = v\n\t}\n\tif cmd.Flags().Changed(\"description\") {\n\t\tv, _ := cmd.Flags().GetString(\"description\")","sourceCodeStart":187,"sourceCodeEnd":223,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_runtime_profile.go#L187-L223","documentation":"Error \"create runtime profile: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_runtime_profile.go:205 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the server response for details and retry creating the profile."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}