AlistGo/alist · error
decode streamtape result failed: %w
Error message
decode streamtape result failed: %w
What it means
Error "decode streamtape result failed: %w" thrown in AlistGo/alist.
Source
Thrown at drivers/streamtape/util.go:50
r, err := base.RestyClient.R().
SetContext(ctx).
SetQueryParams(query).
SetResult(&resp).
Get(apiBase + endpoint)
if err != nil {
return err
}
if r.StatusCode() != http.StatusOK {
return fmt.Errorf("streamtape http error: %d", r.StatusCode())
}
if resp.Status != 200 {
return fmt.Errorf("streamtape api error: status=%d msg=%s", resp.Status, resp.Msg)
}
if out == nil || len(resp.Result) == 0 || string(resp.Result) == "null" {
return nil
}
if err := json.Unmarshal(resp.Result, out); err != nil {
return fmt.Errorf("decode streamtape result failed: %w", err)
}
return nil
}
func folderIDFromObjID(id string) string {
if id == "" || id == "0" || id == "/" {
return "0"
}
if strings.HasPrefix(id, "d:") {
return strings.TrimPrefix(id, "d:")
}
return id
}
func fileIDFromObjID(id string) string {
if strings.HasPrefix(id, "f:") {
return strings.TrimPrefix(id, "f:")
}View on GitHub (pinned to 843d9dc814)
Solutions
- Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry.
When it happens
Trigger: Thrown at drivers/streamtape/util.go:50 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of AlistGo/alist@843d9dc814 (2026-08-15).
Data as JSON: /api/errors/de13b8d81923a9e1.
Report an issue: GitHub.