{"record":{"id":"376decd560b90ebc","repo":"multica-ai/multica","slug":"create-plugin-artifact-form-file-w","errorCode":null,"errorMessage":"create Plugin artifact form file: %w","messagePattern":"create Plugin artifact form file: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/cli/client.go","lineNumber":680,"sourceCode":"\n\tif resp.StatusCode >= 400 {\n\t\treturn newHTTPError(http.MethodPost, \"/api/skills/import\", resp)\n\t}\n\tif out == nil {\n\t\treturn nil\n\t}\n\treturn json.NewDecoder(resp.Body).Decode(out)\n}\n\n// UploadPrivatePlugin installs workspace-private Plugin archive bytes. The\n// filename is transport metadata only; the Server derives source identity from\n// validated manifest content and digests.\nfunc (c *APIClient) UploadPrivatePlugin(ctx context.Context, path string, archive []byte, filename string, out any) error {\n\tvar body bytes.Buffer\n\twriter := multipart.NewWriter(&body)\n\tpart, err := writer.CreateFormFile(\"artifact\", filepath.Base(filename))\n\tif err != nil {\n\t\treturn fmt.Errorf(\"create Plugin artifact form file: %w\", err)\n\t}\n\tif _, err := part.Write(archive); err != nil {\n\t\treturn fmt.Errorf(\"write Plugin artifact: %w\", err)\n\t}\n\tif err := writer.Close(); err != nil {\n\t\treturn fmt.Errorf(\"close Plugin artifact upload: %w\", err)\n\t}\n\n\treq, err := http.NewRequestWithContext(ctx, http.MethodPost, c.BaseURL+path, &body)\n\tif err != nil {\n\t\treturn err\n\t}\n\treq.Header.Set(\"Content-Type\", writer.FormDataContentType())\n\tc.setHeaders(req)\n\tresp, err := c.HTTPClient.Do(req)\n\terr = wrapTransport(req, err)\n\tif err != nil {\n\t\treturn err","sourceCodeStart":662,"sourceCodeEnd":698,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/cli/client.go#L662-L698","documentation":"Error \"create Plugin artifact form file: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/cli/client.go:680 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the Plugin artifact is readable and retry."],"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"}