{"record":{"id":"d290bb37dcd32776","repo":"sqlmapproject/sqlmap","slug":"could-not-connect-to-s-s-s","errorCode":null,"errorMessage":"could not connect to '%s:%s' (%s)","messagePattern":"could not connect to '(.+?):(.+?)' \\((.+?)\\)","errorType":"exception","errorClass":"OperationalError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/clickhouse.py","lineNumber":142,"sourceCode":"        if not body:\n            return None, []\n        lines = body.split(b\"\\n\")\n        if lines and lines[-1] == b\"\":\n            lines.pop()\n        if not lines:\n            return None, []\n        description = [(name, None, None, None, None, None, None) for name in (_decode_cell(_unescape(_)) for _ in lines[0].split(b\"\\t\"))]\n        rows = [tuple(_decode_cell(_unescape(_)) for _ in line.split(b\"\\t\")) for line in lines[1:]]\n        return description, rows\n\ndef connect(host=None, port=8123, user=None, password=None, database=None, connect_timeout=None, **kwargs):\n    connection = Connection(host or \"localhost\", int(port or 8123), user, password, database, connect_timeout)\n    try:\n        connection._query(\"SELECT 1\")  # verify connectivity/credentials up front\n    except ProgrammingError:\n        raise\n    except Exception as ex:\n        raise OperationalError(\"could not connect to '%s:%s' (%s)\" % (host, port, ex))\n    return connection\n","sourceCodeStart":124,"sourceCodeEnd":144,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/clickhouse.py#L124-L144","documentation":"Error \"could not connect to '%s:%s' (%s)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/clickhouse.py:142 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":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}