{"record":{"id":"cafda49779bb62a3","repo":"multica-ai/multica","slug":"create-project-w","errorCode":null,"errorMessage":"create project: %w","messagePattern":"create project: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_project.go","lineNumber":371,"sourceCode":"\t\tresources := make([]map[string]any, 0, len(repos))\n\t\tfor _, repoURL := range repos {\n\t\t\trepoURL = strings.TrimSpace(repoURL)\n\t\t\tif repoURL == \"\" {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tresources = append(resources, map[string]any{\n\t\t\t\t\"resource_type\": \"github_repo\",\n\t\t\t\t\"resource_ref\":  map[string]any{\"url\": repoURL},\n\t\t\t})\n\t\t}\n\t\tif len(resources) > 0 {\n\t\t\tbody[\"resources\"] = resources\n\t\t}\n\t}\n\n\tvar result map[string]any\n\tif err := client.PostJSON(ctx, \"/api/projects\", body, &result); err != nil {\n\t\treturn fmt.Errorf(\"create project: %w\", err)\n\t}\n\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tif output == \"table\" {\n\t\theaders := []string{\"ID\", \"TITLE\", \"STATUS\"}\n\t\trows := [][]string{{\n\t\t\tstrVal(result, \"id\"),\n\t\t\tstrVal(result, \"title\"),\n\t\t\tstrVal(result, \"status\"),\n\t\t}}\n\t\tcli.PrintTable(os.Stdout, headers, rows)\n\t\treturn nil\n\t}\n\n\treturn cli.PrintJSON(os.Stdout, result)\n}\n\nfunc runProjectUpdate(cmd *cobra.Command, args []string) error {","sourceCodeStart":353,"sourceCodeEnd":389,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_project.go#L353-L389","documentation":"Error \"create project: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_project.go:371 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the server response for details and retry creating the project."],"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"}