{"record":{"id":"76d2c000c503024e","repo":"AlistGo/alist","slug":"failed-to-get-parent-keyring-w","errorCode":null,"errorMessage":"failed to get parent keyring: %w","messagePattern":"failed to get parent keyring: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":367,"sourceCode":"\n\t\t\tresult = append(result, httpRange{start: start, end: end})\n\t\t}\n\t}\n\n\treturn result, nil\n}\n\nfunc (d *ProtonDrive) encryptFileName(ctx context.Context, name string, parentLinkID string) (string, error) {\n\n\tparentLink, err := d.getLink(ctx, parentLinkID)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get parent link: %w\", err)\n\t}\n\n\t// Get parent node keyring\n\tparentNodeKR, err := d.getLinkKR(ctx, parentLink)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get parent keyring: %w\", err)\n\t}\n\n\t// Temporary file (request)\n\ttempReq := proton.CreateFileReq{\n\t\tSignatureAddress: d.MainShare.Creator,\n\t}\n\n\t// Encrypt the filename\n\terr = tempReq.SetName(name, d.DefaultAddrKR, parentNodeKR)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to encrypt filename: %w\", err)\n\t}\n\n\treturn tempReq.Name, nil\n}\n\nfunc (d *ProtonDrive) generateFileNameHash(ctx context.Context, name string, parentLinkID string) (string, error) {\n","sourceCodeStart":349,"sourceCodeEnd":385,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L349-L385","documentation":"Error \"failed to get parent keyring: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:367 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"}