{"record":{"id":"7f587e736f44d93e","repo":"AlistGo/alist","slug":"streamtape-api-error-status-d-msg-s","errorCode":null,"errorMessage":"streamtape api error: status=%d msg=%s","messagePattern":"streamtape api error: status=(.+?) msg=(.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/streamtape/util.go","lineNumber":44,"sourceCode":"\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:\") {\n\t\treturn strings.TrimPrefix(id, \"d:\")\n\t}\n\treturn id","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/streamtape/util.go#L26-L62","documentation":"Error \"streamtape api error: status=%d msg=%s\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/streamtape/util.go:44 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-15T22:17:37.221Z"}