{"record":{"id":"1e5058c048c8f855","repo":"AlistGo/alist","slug":"link-hash-is-empty","errorCode":null,"errorMessage":"link hash is empty","messagePattern":"link hash is empty","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":421,"sourceCode":"\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get parent hash key: %w\", err)\n\t}\n\n\tnameHash, err := proton.GetNameHash(name, parentHashKey)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to generate name hash: %w\", err)\n\t}\n\n\treturn nameHash, nil\n}\n\nfunc (d *ProtonDrive) getOriginalNameHash(link *proton.Link) (string, error) {\n\tif link == nil {\n\t\treturn \"\", fmt.Errorf(\"link cannot be nil\")\n\t}\n\n\tif link.Hash == \"\" {\n\t\treturn \"\", fmt.Errorf(\"link hash is empty\")\n\t}\n\n\treturn link.Hash, nil\n}\n\nfunc (d *ProtonDrive) getLink(ctx context.Context, linkID string) (*proton.Link, error) {\n\tif linkID == \"\" {\n\t\treturn nil, fmt.Errorf(\"linkID cannot be empty\")\n\t}\n\n\tlink, err := d.c.GetLink(ctx, d.MainShare.ShareID, linkID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &link, nil\n}\n","sourceCodeStart":403,"sourceCodeEnd":439,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L403-L439","documentation":"Error \"link hash is empty\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:421 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the referenced value is configured and non-empty, then 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-15T22:17:37.221Z"}