{"record":{"id":"307057c030747893","repo":"juspay/hyperswitch","slug":"failed-to-create-redis-connection-pool","errorCode":null,"errorMessage":"Failed to create Redis connection Pool","messagePattern":"Failed to create Redis connection Pool","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/drainer/src/connection.rs","lineNumber":11,"sourceCode":"use common_utils::DbConnectionParams;\nuse diesel_models::DejaPgConnection;\nuse storage_impl::database::store::{DatabaseConnectionWithContext, PgPool};\n\nuse crate::{settings::Database, Settings};\n\n#[allow(clippy::expect_used)]\npub async fn redis_connection(conf: &Settings) -> redis_interface::RedisConnectionPool {\n    redis_interface::RedisConnectionPool::new_without_event_emitter(&conf.redis)\n        .await\n        .expect(\"Failed to create Redis connection Pool\")\n}\n\n// TODO: use stores defined in storage_impl instead\n/// # Panics\n///\n/// Will panic if could not create a db pool\n#[allow(clippy::expect_used)]\npub async fn diesel_make_pg_pool(\n    database: &Database,\n    _test_transaction: bool,\n    schema: &str,\n) -> PgPool {\n    let database_url = database.get_database_url(schema);\n    let manager = async_bb8_diesel::ConnectionManager::<DejaPgConnection>::new(database_url);\n    let pool = bb8::Pool::builder()\n        .max_size(database.pool_size)\n        .connection_timeout(std::time::Duration::from_secs(database.connection_timeout));\n","sourceCodeStart":1,"sourceCodeEnd":29,"githubUrl":"https://github.com/juspay/hyperswitch/blob/806ec7dcc036d895b93313d5e8eaa2374e25bcdf/crates/drainer/src/connection.rs#L1-L29","documentation":"Error \"Failed to create Redis connection Pool\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/drainer/src/connection.rs:13 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify Redis is running and reachable at the configured host/port and that the Redis URL/auth is correct"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"806ec7dcc036d895b93313d5e8eaa2374e25bcdf","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}