{"record":{"id":"956158a7ae6787d3","repo":"sqlmapproject/sqlmap","slug":"could-not-connect-to-s-s-s-956158","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/presto.py","lineNumber":191,"sourceCode":"            if page.get(\"columns\") and columns is None:\n                columns = [(c.get(\"name\"), c.get(\"type\"), None, None, None, None, None) for c in page[\"columns\"]]\n                types = [(c.get(\"type\") or \"\") for c in page[\"columns\"]]\n            for row in page.get(\"data\") or []:\n                rows.append(tuple(_convert(v, types[i] if i < len(types) else \"\") for i, v in enumerate(row)))\n            next_uri = page.get(\"nextUri\")\n            if not next_uri:\n                break\n            page = self._request(next_uri)\n        return columns, rows\n\ndef connect(host=None, port=8080, user=None, password=None, database=None, connect_timeout=None, schema=None, **kwargs):\n    connection = Connection(host or \"localhost\", int(port or 8080), user, password, database, schema, connect_timeout)\n    try:\n        connection._query(\"SELECT 1\")  # verify connectivity/credentials\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":173,"sourceCodeEnd":193,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/presto.py#L173-L193","documentation":"Error \"could not connect to '%s:%s' (%s)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/presto.py:191 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"}