{"record":{"id":"431ee8cf0a5752ea","repo":"AlistGo/alist","slug":"failed-to-get-parent-link-w","errorCode":null,"errorMessage":"failed to get parent link: %w","messagePattern":"failed to get parent link: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":128,"sourceCode":"\n\tif pr.callback != nil {\n\t\tpercentage := float64(pr.current) / float64(pr.total) * 100\n\t\tpr.callback(percentage)\n\t}\n\n\treturn n, err\n}\n\nfunc (d *ProtonDrive) uploadFile(ctx context.Context, parentLinkID, fileName string, file *os.File, size int64, up driver.UpdateProgress) error {\n\n\tfileInfo, err := file.Stat()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get file info: %w\", err)\n\t}\n\n\t_, err = d.protonDrive.GetLink(ctx, parentLinkID)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get parent link: %w\", err)\n\t}\n\n\treader := &progressReader{\n\t\treader:   bufio.NewReader(file),\n\t\ttotal:    size,\n\t\tcurrent:  0,\n\t\tcallback: up,\n\t}\n\n\t_, _, err = d.protonDrive.UploadFileByReader(ctx, parentLinkID, fileName, fileInfo.ModTime(), reader, 0)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to upload file: %w\", err)\n\t}\n\n\treturn nil\n}\n\nfunc (d *ProtonDrive) ensureTempServer() error {","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L110-L146","documentation":"Error \"failed to get parent link: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:128 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"}