{"record":{"id":"27d778754a8f5190","repo":"sqlmapproject/sqlmap","slug":"websocket-handshake-status-s","errorCode":null,"errorMessage":"websocket handshake status %s","messagePattern":"websocket handshake status (.+?)","errorType":"exception","errorClass":"SqlmapConnectionException","httpStatus":null,"severity":"error","filePath":"lib/request/connect.py","lineNumber":1022,"sourceCode":"                if match:\n                    warnMsg += \" ('%s')\" % match.group(1).strip()\n            elif \"NTLM\" in tbMsg:\n                warnMsg = \"there has been a problem with NTLM authentication\"\n            elif \"Invalid header name\" in tbMsg:  # (e.g. PostgreSQL ::Text payload)\n                return None, None, None\n            elif \"BadStatusLine\" in tbMsg:\n                warnMsg = \"connection dropped or unknown HTTP \"\n                warnMsg += \"status code received\"\n                if not conf.agent and not conf.randomAgent:\n                    warnMsg += \". Try to force the HTTP User-Agent \"\n                    warnMsg += \"header with option '--user-agent' or switch '--random-agent'\"\n            elif \"IncompleteRead\" in tbMsg:\n                warnMsg = \"there was an incomplete read error while retrieving data \"\n                warnMsg += \"from the target URL\"\n            elif \"Handshake status\" in tbMsg:\n                status = re.search(r\"Handshake status ([\\d]{3})\", tbMsg)\n                errMsg = \"websocket handshake status %s\" % status.group(1) if status else \"unknown\"\n                raise SqlmapConnectionException(errMsg)\n            elif \"SqlmapCompressionException\" in tbMsg:\n                warnMsg = \"problems with response (de)compression\"\n                retrying = True\n            else:\n                warnMsg = \"unable to connect to the target URL\"\n\n            if \"BadStatusLine\" not in tbMsg and any((conf.proxy, conf.tor)):\n                warnMsg += \" or proxy\"\n\n            if silent:\n                return None, None, None\n\n            with kb.locks.connError:\n                kb.connErrorCounter += 1\n\n                if kb.connErrorCounter >= MAX_CONSECUTIVE_CONNECTION_ERRORS and kb.choices.connError is None:\n                    message = \"there seems to be a continuous problem with connection to the target. \"\n                    message += \"Are you sure that you want to continue? [y/N] \"","sourceCodeStart":1004,"sourceCodeEnd":1040,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/connect.py#L1004-L1040","documentation":"Error \"websocket handshake status %s\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/connect.py:1022 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"}