{"record":{"id":"76acc8bfd9296241","repo":"Foundry376/Mailspring","slug":"your-mailspring-id-password-could-not-be-loaded-fr","errorCode":null,"errorMessage":"Your Mailspring ID password could not be loaded from your keychain. Please visit Preferences > Subscription and click \"Setup Mailspring ID\" to sign in to your Mailspring account again.\\n\\nYour Mailspring ID email address is ${this._identity.emailAddress}.","messagePattern":"Your Mailspring ID password could not be loaded from your keychain\\. Please visit Preferences > Subscription and click \"Setup Mailspring ID\" to sign in to your Mailspring account again\\.\\\\n\\\\nYour Mailspring ID email address is (.+?)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/flux/stores/identity-store.ts","lineNumber":146,"sourceCode":"    AppEnv.config.set('identity', rest);\n\n    // Setting AppEnv.config will trigger our onDidChange handler,\n    // no need to trigger here.\n  }\n\n  /**\n   * When the identity changes in the database, update our local store\n   * cache and set the token from the keychain.\n   */\n  _onIdentityChanged = async () => {\n    const value = AppEnv.config.get('identity');\n    this._identity = value\n      ? { ...value, token: await KeyManager.getPassword(PASSWORD_NAME) }\n      : null;\n\n    if (this._identity && !this._identity.token) {\n      const message = `Your Mailspring ID password could not be loaded from your keychain. Please visit Preferences > Subscription and click \"Setup Mailspring ID\" to sign in to your Mailspring account again.\\n\\nYour Mailspring ID email address is ${this._identity.emailAddress}.`;\n      console.warn(message);\n\n      if (!this._displayedPasswordError) {\n        this._displayedPasswordError = true;\n        AppEnv.showErrorDialog({ title: 'Please Sign In', message });\n      }\n      this._identity = null;\n    }\n\n    this.trigger();\n  };\n\n  _onLogoutMailspringIdentity = async () => {\n    // Do not touch the keychain or restart the app during specs.\n    if (AppEnv.inSpecMode()) return;\n    await this.saveIdentity(null);\n    // We need to relaunch the app to clear the webview session\n    // and prevent the webview from re signing in with the same MailspringID\n    require('@electron/remote').app.relaunch();","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/Foundry376/Mailspring/blob/648c685d602ece6bb00c22534b8734de6ac644b3/app/src/flux/stores/identity-store.ts#L128-L164","documentation":"Error \"Your Mailspring ID password could not be loaded from your keychain. Please visit Preferences > Subscription and click \"Setup Mailspring ID\" to sign in to your Mailspring account again.\\n\\nYour Mailspring ID email address is ${this._identity.emailAddress}.\" thrown in Foundry376/Mailspring.","triggerScenarios":"Thrown at app/src/flux/stores/identity-store.ts:146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open Preferences > Subscription and click \"Setup Mailspring ID\" to sign in again","Verify the system keychain is unlocked and accessible (on Linux check gnome-keyring/kwallet availability)","Re-enter credentials so a new token is stored under the PASSWORD_NAME keychain entry"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"648c685d602ece6bb00c22534b8734de6ac644b3","analyzedAt":"2026-09-03T02:00:24.311Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T07:17:11.731Z"}