{"record":{"id":"b23e75c19c847495","repo":"AlistGo/alist","slug":"failed-to-get-account-keyrings-w","errorCode":null,"errorMessage":"failed to get account keyrings: %w","messagePattern":"failed to get account keyrings: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/driver.go","lineNumber":185,"sourceCode":"\t} else {\n\t\td.credentials = credentials\n\t}\n\n\tclientOptions := []proton.Option{\n\t\tproton.WithAppVersion(d.appVersion),\n\t\tproton.WithUserAgent(d.userAgent),\n\t}\n\tmanager := proton.New(clientOptions...)\n\td.c = manager.NewClient(d.credentials.UID, d.credentials.AccessToken, d.credentials.RefreshToken)\n\n\tsaltedKeyPassBytes, err := base64.StdEncoding.DecodeString(d.credentials.SaltedKeyPass)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to decode salted key pass: %w\", err)\n\t}\n\n\t_, addrKRs, addrs, _, err := getAccountKRs(ctx, d.c, nil, saltedKeyPassBytes)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get account keyrings: %w\", err)\n\t}\n\n\td.MainShare = protonDrive.MainShare\n\td.RootLink = protonDrive.RootLink\n\td.MainShareKR = protonDrive.MainShareKR\n\td.DefaultAddrKR = protonDrive.DefaultAddrKR\n\td.addrKRs = addrKRs\n\td.addrData = addrs\n\n\treturn nil\n}\n\nfunc (d *ProtonDrive) Drop(ctx context.Context) error {\n\tif d.tempServer != nil {\n\t\td.tempServer.Shutdown(ctx)\n\t}\n\treturn nil\n}","sourceCodeStart":167,"sourceCodeEnd":203,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/driver.go#L167-L203","documentation":"Error \"failed to get account keyrings: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/driver.go:185 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"}