{"record":{"id":"696c7dce7735953f","repo":"AlistGo/alist","slug":"failed-to-initialize-protondrive-w","errorCode":null,"errorMessage":"failed to initialize ProtonDrive: %w","messagePattern":"failed to initialize ProtonDrive: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/driver.go","lineNumber":149,"sourceCode":"\tif config.FirstLoginCredential == nil {\n\t\treturn fmt.Errorf(\"failed to create login credentials, FirstLoginCredential cannot be nil\")\n\t}\n\n\t//fmt.Printf(\"Calling NewProtonDrive...\")\n\n\tprotonDrive, credentials, err := proton_api_bridge.NewProtonDrive(\n\t\tctx,\n\t\tconfig,\n\t\tfunc(auth proton.Auth) {},\n\t\tfunc() {},\n\t)\n\n\tif credentials == nil && !useReusableLogin {\n\t\treturn fmt.Errorf(\"failed to get credentials from NewProtonDrive\")\n\t}\n\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to initialize ProtonDrive: %w\", err)\n\t}\n\n\td.protonDrive = protonDrive\n\n\tvar finalCredentials *common.ProtonDriveCredential\n\n\tif useReusableLogin {\n\n\t\t// For reusable login, create credentials from cached data\n\t\tfinalCredentials = &common.ProtonDriveCredential{\n\t\t\tUID:           reusableCredential.UID,\n\t\t\tAccessToken:   reusableCredential.AccessToken,\n\t\t\tRefreshToken:  reusableCredential.RefreshToken,\n\t\t\tSaltedKeyPass: reusableCredential.SaltedKeyPass,\n\t\t}\n\n\t\td.credentials = finalCredentials\n\t} else {","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/driver.go#L131-L167","documentation":"Error \"failed to initialize ProtonDrive: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/driver.go:149 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"}