sqlmapproject/sqlmap · error · ProgrammingError

(remote) %s

Error message

(remote) %s

What it means

Error "(remote) %s" thrown in sqlmapproject/sqlmap.

Source

Thrown at extra/dbwire/clickhouse.py:118

    def cursor(self):
        return Cursor(self)

    def commit(self):
        pass  # ClickHouse statements are executed immediately (no client-side transaction)

    def rollback(self):
        pass

    def close(self):
        pass  # HTTP is stateless

    def _query(self, query):
        req = Request(self._url, data=query.encode("utf-8"), headers=self._headers)
        try:
            body = urlopen(req, timeout=self._timeout).read()  # bytes: column data may be non-UTF-8
        except HTTPError as ex:
            raise ProgrammingError("(remote) %s" % ex.read().decode("utf-8", "replace").strip())
        except URLError as ex:
            raise OperationalError("(remote) %s" % ex)
        except (socket.timeout, socket.error) as ex:
            raise OperationalError("(remote) %s" % ex)

        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)

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at extra/dbwire/clickhouse.py:118 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/fa3cdcb11bced2b5. Report an issue: GitHub.