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/presto.py:191

            if page.get("columns") and columns is None:
                columns = [(c.get("name"), c.get("type"), None, None, None, None, None) for c in page["columns"]]
                types = [(c.get("type") or "") for c in page["columns"]]
            for row in page.get("data") or []:
                rows.append(tuple(_convert(v, types[i] if i < len(types) else "") for i, v in enumerate(row)))
            next_uri = page.get("nextUri")
            if not next_uri:
                break
            page = self._request(next_uri)
        return columns, rows

def connect(host=None, port=8080, user=None, password=None, database=None, connect_timeout=None, schema=None, **kwargs):
    connection = Connection(host or "localhost", int(port or 8080), user, password, database, schema, connect_timeout)
    try:
        connection._query("SELECT 1")  # verify connectivity/credentials
    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/presto.py:191 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/956158a7ae6787d3. Report an issue: GitHub.