{"record":{"id":"af6a73966b1c4a5c","repo":"cube-js/cube","slug":"the-keybydatasource-cubejs-db-snowflake-client","errorCode":null,"errorMessage":"The ${keyByDataSource('CUBEJS_DB_SNOWFLAKE_CLIENT_SESSION_KEEP_ALIVE', dataSource)} must be either 'true' or 'false'.","messagePattern":"The (.+?) must be either 'true' or 'false'\\.","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/cubejs-backend-shared/src/env.ts","lineNumber":1552,"sourceCode":"  }: DataSourceOpts) => (\n    get(keyByDataSource('CUBEJS_DB_SNOWFLAKE_ROLE', dataSource, preAggregations)).asString()\n  ),\n\n  /**\n   * Snowflake session keep alive flag.\n   */\n  snowflakeSessionKeepAlive: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => {\n    const val = get(keyByDataSource('CUBEJS_DB_SNOWFLAKE_CLIENT_SESSION_KEEP_ALIVE', dataSource, preAggregations)).asString();\n    if (val) {\n      if (val.toLocaleLowerCase() === 'true') {\n        return true;\n      } else if (val.toLowerCase() === 'false') {\n        return false;\n      } else {\n        throw new TypeError(\n          `The ${\n            keyByDataSource(\n              'CUBEJS_DB_SNOWFLAKE_CLIENT_SESSION_KEEP_ALIVE',\n              dataSource,\n            )\n          } must be either 'true' or 'false'.`\n        );\n      }\n    } else {\n      return true;\n    }\n  },\n\n  /**\n   * Snowflake authenticator.\n   */\n  snowflakeAuthenticator: ({\n    dataSource,","sourceCodeStart":1534,"sourceCodeEnd":1570,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-shared/src/env.ts#L1534-L1570","documentation":"Env type validation in env.ts snowflakeSessionKeepAlive: CUBEJS_DB_SNOWFLAKE_CLIENT_SESSION_KEEP_ALIVE is set to something other than the string 'true' or 'false' (case-insensitive). This boolean env var is strict-parsed, so any other value aborts with a TypeError at accessor time.","triggerScenarios":"Thrown at packages/cubejs-backend-shared/src/env.ts:1552 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the variable to exactly 'true' or 'false' (lower or upper case).","Remove the variable to accept the driver default.","Check for stray whitespace, quotes, or 0/1 values, which are not accepted."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}