{"record":{"id":"32d91226dc217099","repo":"diegosouzapw/OmniRoute","slug":"unable-to-inspect-existing-database-at-dbpath","errorCode":null,"errorMessage":"Unable to inspect existing database at ${dbPath}: ${message}","messagePattern":"Unable to inspect existing database at (.+?): (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"electron/sqlite-inspection.js","lineNumber":55,"sourceCode":"\n  let db = null;\n  try {\n    db = openDatabase(dbPath);\n    const row = db\n      .prepare(\n        `SELECT 1\n           FROM provider_connections\n          WHERE access_token LIKE 'enc:v1:%'\n             OR refresh_token LIKE 'enc:v1:%'\n             OR api_key LIKE 'enc:v1:%'\n             OR id_token LIKE 'enc:v1:%'\n          LIMIT 1`\n      )\n      .get();\n    return !!row;\n  } catch (error) {\n    const message = formatLoadError(error);\n    throw new Error(`Unable to inspect existing database at ${dbPath}: ${message}`);\n  } finally {\n    if (db) {\n      db.close();\n    }\n  }\n}\n\nmodule.exports = {\n  hasEncryptedCredentials,\n  openNodeSqliteReadOnly,\n  openReadOnlySqliteDatabase,\n};\n","sourceCodeStart":37,"sourceCodeEnd":68,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/electron/sqlite-inspection.js#L37-L68","documentation":"Error \"Unable to inspect existing database at ${dbPath}: ${message}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at electron/sqlite-inspection.js:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}