{"record":{"id":"1031506e11de1247","repo":"sqlmapproject/sqlmap","slug":"native-http-2-client-does-not-support-socks-proxie","errorCode":null,"errorMessage":"native HTTP/2 client does not support SOCKS proxies (omit '--http2' or use an HTTP proxy)","messagePattern":"native HTTP/2 client does not support SOCKS proxies \\(omit '--http2' or use an HTTP proxy\\)","errorType":"exception","errorClass":"SqlmapMissingDependence","httpStatus":null,"severity":"error","filePath":"lib/request/connect.py","lineNumber":730,"sourceCode":"                            cookie.value = \"\"\n                        else:\n                            for char in (r\"\\r\", r\"\\n\"):\n                                cookie.value = re.sub(r\"(%s)([^ \\t])\" % char, r\"\\g<1>\\t\\g<2>\", cookie.value)\n\n                # Build-only capture: return the fully-assembled request instead of sending it, so the\n                # HTTP/2 timeless-timing oracle (lib/request/timeless.py) can coalesce two of these into a\n                # single multiplexed pair rather than issue them as independent single-stream requests.\n                if kwargs.get(\"buildOnly\"):\n                    return (url, method or (HTTPMETHOD.POST if post is not None else HTTPMETHOD.GET), headers, post)\n\n                if conf.http2:\n                    from lib.request.http2 import open_url as http2OpenUrl\n                    from lib.request.http2 import proxy_tuple\n\n                    try:\n                        h2proxy = proxy_tuple(conf.proxy, conf.proxyCred)\n                    except ValueError:\n                        raise SqlmapMissingDependence(\"native HTTP/2 client does not support SOCKS proxies (omit '--http2' or use an HTTP proxy)\")\n\n                    try:\n                        conn = http2OpenUrl(url, method or (HTTPMETHOD.POST if post is not None else HTTPMETHOD.GET), headers, post, timeout, follow_redirects=kb.choices.redirect != REDIRECTION.NO, proxy=h2proxy)\n                    except IOError as ex:\n                        raise _http_client.HTTPException(getSafeExString(ex))\n                    else:\n                        if conn.code >= 400:\n                            raise _urllib.error.HTTPError(url, conn.code, conn.msg, conn.info(), io.BytesIO(conn.read()))\n\n                        requestMsg = re.sub(r\" HTTP/[0-9.]+\\r\\n\", \" %s\\r\\n\" % conn.http_version, requestMsg, count=1)\n\n                        if not multipart:\n                            threadData.lastRequestMsg = requestMsg\n\n                            logger.log(CUSTOM_LOGGING.TRAFFIC_OUT, requestMsg)\n                else:\n                    if not multipart:\n                        threadData.lastRequestMsg = requestMsg","sourceCodeStart":712,"sourceCodeEnd":748,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/connect.py#L712-L748","documentation":"Error \"native HTTP/2 client does not support SOCKS proxies (omit '--http2' or use an HTTP proxy)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/connect.py:730 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"}