{"record":{"id":"b48435d594b9b4f1","repo":"AlistGo/alist","slug":"invalid-file-id-q-w","errorCode":null,"errorMessage":"invalid file id %q: %w","messagePattern":"invalid file id %q: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/123_open/util.go","lineNumber":30,"sourceCode":")\n\n// timeLayout is the timestamp format returned by the open platform, expressed\n// in Beijing time.\nconst timeLayout = \"2006-01-02 15:04:05\"\n\n// cst is the timezone the open platform reports its timestamps in.\nvar cst = time.FixedZone(\"CST\", 8*3600)\n\n// parseFileID turns an AList object ID into the numeric file ID used by the\n// API. The root directory is 0.\nfunc parseFileID(id string) (int64, error) {\n\tid = strings.TrimSpace(id)\n\tif id == \"\" || id == \"root\" {\n\t\treturn 0, nil\n\t}\n\tfileID, err := strconv.ParseInt(id, 10, 64)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"invalid file id %q: %w\", id, err)\n\t}\n\treturn fileID, nil\n}\n\n// parseTime parses an open platform timestamp, returning the zero time when it\n// is missing or malformed.\nfunc parseTime(s string) time.Time {\n\tif s == \"\" {\n\t\treturn time.Time{}\n\t}\n\tt, err := time.ParseInLocation(timeLayout, s, cst)\n\tif err != nil {\n\t\treturn time.Time{}\n\t}\n\treturn t\n}\n\n// fileToObj maps a v2 file list entry onto an AList object. The Etag exposed by","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/123_open/util.go#L12-L48","documentation":"Error \"invalid file id %q: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/123_open/util.go:30 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"}