{"record":{"id":"fa3cdcb11bced2b5","repo":"sqlmapproject/sqlmap","slug":"remote-s","errorCode":null,"errorMessage":"(remote) %s","messagePattern":"\\(remote\\) (.+?)","errorType":"exception","errorClass":"ProgrammingError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/clickhouse.py","lineNumber":118,"sourceCode":"\n    def cursor(self):\n        return Cursor(self)\n\n    def commit(self):\n        pass  # ClickHouse statements are executed immediately (no client-side transaction)\n\n    def rollback(self):\n        pass\n\n    def close(self):\n        pass  # HTTP is stateless\n\n    def _query(self, query):\n        req = Request(self._url, data=query.encode(\"utf-8\"), headers=self._headers)\n        try:\n            body = urlopen(req, timeout=self._timeout).read()  # bytes: column data may be non-UTF-8\n        except HTTPError as ex:\n            raise ProgrammingError(\"(remote) %s\" % ex.read().decode(\"utf-8\", \"replace\").strip())\n        except URLError as ex:\n            raise OperationalError(\"(remote) %s\" % ex)\n        except (socket.timeout, socket.error) as ex:\n            raise OperationalError(\"(remote) %s\" % ex)\n\n        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)","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/clickhouse.py#L100-L136","documentation":"Error \"(remote) %s\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/clickhouse.py:118 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"}