{"record":{"id":"0b62b38a7fa0d8a1","repo":"multica-ai/multica","slug":"list-project-resources-w","errorCode":null,"errorMessage":"list project resources: %w","messagePattern":"list project resources: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_project.go","lineNumber":545,"sourceCode":"// ---------------------------------------------------------------------------\n\nfunc runProjectResourceList(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tprojectRef, err := resolveProjectID(ctx, client, args[0])\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve project: %w\", err)\n\t}\n\n\tvar result map[string]any\n\tif err := client.GetJSON(ctx, \"/api/projects/\"+projectRef.ID+\"/resources\", &result); err != nil {\n\t\treturn fmt.Errorf(\"list project resources: %w\", err)\n\t}\n\tresourcesRaw, _ := result[\"resources\"].([]any)\n\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tif output == \"json\" {\n\t\treturn cli.PrintJSON(os.Stdout, resourcesRaw)\n\t}\n\n\tfullID, _ := cmd.Flags().GetBool(\"full-id\")\n\theaders := []string{\"ID\", \"TYPE\", \"REF\", \"LABEL\"}\n\trows := make([][]string, 0, len(resourcesRaw))\n\tfor _, raw := range resourcesRaw {\n\t\tr, ok := raw.(map[string]any)\n\t\tif !ok {\n\t\t\tcontinue\n\t\t}\n\t\trows = append(rows, []string{\n\t\t\tdisplayID(strVal(r, \"id\"), fullID),","sourceCodeStart":527,"sourceCodeEnd":563,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_project.go#L527-L563","documentation":"Error \"list project resources: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_project.go:545 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check server connectivity and retry listing project resources."],"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-15T22:17:37.221Z"}