{"record":{"id":"30e31df9ee94f8ce","repo":"AlistGo/alist","slug":"failed-to-get-file-info","errorCode":null,"errorMessage":"Failed to get file info","messagePattern":"Failed to get file info","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":194,"sourceCode":"\td.tokenMutex.RLock()\n\tinfo, exists := d.downloadTokens[token]\n\td.tokenMutex.RUnlock()\n\n\tif !exists {\n\t\thttp.Error(w, \"Invalid or expired token\", http.StatusNotFound)\n\t\treturn\n\t}\n\n\tlink, err := d.protonDrive.GetLink(r.Context(), info.LinkID)\n\tif err != nil {\n\t\thttp.Error(w, \"Failed to get file link\", http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\t// Get file size for range calculations\n\t_, _, attrs, err := d.protonDrive.DownloadFile(r.Context(), link, 0)\n\tif err != nil {\n\t\thttp.Error(w, \"Failed to get file info\", http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tfileSize := attrs.Size\n\n\trangeHeader := r.Header.Get(\"Range\")\n\tif rangeHeader != \"\" {\n\n\t\t// Parse range header like \"bytes=0-1023\" or \"bytes=1024-\"\n\t\tranges, err := parseRange(rangeHeader, fileSize)\n\t\tif err != nil {\n\t\t\thttp.Error(w, \"Invalid range\", http.StatusRequestedRangeNotSatisfiable)\n\t\t\treturn\n\t\t}\n\n\t\tif len(ranges) == 1 {\n\n\t\t\t// Single range request, small","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L176-L212","documentation":"Error \"Failed to get file info\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation."],"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"}