{"record":{"id":"c584622cc2037b60","repo":"AlistGo/alist","slug":"streamtape-http-error-d","errorCode":null,"errorMessage":"streamtape http error: %d","messagePattern":"streamtape http error: (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/streamtape/util.go","lineNumber":41,"sourceCode":"\t}\n\tfor k, v := range params {\n\t\tif strings.TrimSpace(v) == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\tquery[k] = v\n\t}\n\n\tvar resp apiResponse\n\tr, err := base.RestyClient.R().\n\t\tSetContext(ctx).\n\t\tSetQueryParams(query).\n\t\tSetResult(&resp).\n\t\tGet(apiBase + endpoint)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif r.StatusCode() != http.StatusOK {\n\t\treturn fmt.Errorf(\"streamtape http error: %d\", r.StatusCode())\n\t}\n\tif resp.Status != 200 {\n\t\treturn fmt.Errorf(\"streamtape api error: status=%d msg=%s\", resp.Status, resp.Msg)\n\t}\n\tif out == nil || len(resp.Result) == 0 || string(resp.Result) == \"null\" {\n\t\treturn nil\n\t}\n\tif err := json.Unmarshal(resp.Result, out); err != nil {\n\t\treturn fmt.Errorf(\"decode streamtape result failed: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc folderIDFromObjID(id string) string {\n\tif id == \"\" || id == \"0\" || id == \"/\" {\n\t\treturn \"0\"\n\t}\n\tif strings.HasPrefix(id, \"d:\") {","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/streamtape/util.go#L23-L59","documentation":"Error \"streamtape http error: %d\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/streamtape/util.go:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}