multica-ai/multica · error
close Plugin artifact upload: %w
Error message
close Plugin artifact upload: %w
What it means
Error "close Plugin artifact upload: %w" thrown in multica-ai/multica.
Source
Thrown at server/internal/cli/client.go:686
}
return json.NewDecoder(resp.Body).Decode(out)
}
// UploadPrivatePlugin installs workspace-private Plugin archive bytes. The
// filename is transport metadata only; the Server derives source identity from
// validated manifest content and digests.
func (c *APIClient) UploadPrivatePlugin(ctx context.Context, path string, archive []byte, filename string, out any) error {
var body bytes.Buffer
writer := multipart.NewWriter(&body)
part, err := writer.CreateFormFile("artifact", filepath.Base(filename))
if err != nil {
return fmt.Errorf("create Plugin artifact form file: %w", err)
}
if _, err := part.Write(archive); err != nil {
return fmt.Errorf("write Plugin artifact: %w", err)
}
if err := writer.Close(); err != nil {
return fmt.Errorf("close Plugin artifact upload: %w", err)
}
req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.BaseURL+path, &body)
if err != nil {
return err
}
req.Header.Set("Content-Type", writer.FormDataContentType())
c.setHeaders(req)
resp, err := c.HTTPClient.Do(req)
err = wrapTransport(req, err)
if err != nil {
return err
}
defer resp.Body.Close()
if resp.StatusCode >= 400 {
return newHTTPError(http.MethodPost, path, resp)
}
if out == nil {View on GitHub (pinned to 2c0912b6ec)
Solutions
- Retry the Plugin artifact upload; check network stability.
When it happens
Trigger: Thrown at server/internal/cli/client.go:686 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/6b4e9648b5db25ae.
Report an issue: GitHub.