sqlmapproject/sqlmap · error · OperationalError
could not connect to '%s:%s' (%s)
Error message
could not connect to '%s:%s' (%s)
What it means
Error "could not connect to '%s:%s' (%s)" thrown in sqlmapproject/sqlmap.
Source
Thrown at extra/dbwire/clickhouse.py:142
if not body:
return None, []
lines = body.split(b"\n")
if lines and lines[-1] == b"":
lines.pop()
if not lines:
return None, []
description = [(name, None, None, None, None, None, None) for name in (_decode_cell(_unescape(_)) for _ in lines[0].split(b"\t"))]
rows = [tuple(_decode_cell(_unescape(_)) for _ in line.split(b"\t")) for line in lines[1:]]
return description, rows
def connect(host=None, port=8123, user=None, password=None, database=None, connect_timeout=None, **kwargs):
connection = Connection(host or "localhost", int(port or 8123), user, password, database, connect_timeout)
try:
connection._query("SELECT 1") # verify connectivity/credentials up front
except ProgrammingError:
raise
except Exception as ex:
raise OperationalError("could not connect to '%s:%s' (%s)" % (host, port, ex))
return connection
View on GitHub (pinned to 0a35b20e39)
When it happens
Trigger: Thrown at extra/dbwire/clickhouse.py:142 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/d290bb37dcd32776.
Report an issue: GitHub.