{"record":{"id":"61df32171ecfe9a1","repo":"sqlmapproject/sqlmap","slug":"unable-to-connect-to-the-target-url-d-s","errorCode":null,"errorMessage":"unable to connect to the target URL (%d - %s)","messagePattern":"unable to connect to the target URL \\((.+?) - (.+?)\\)","errorType":"http","errorClass":"SqlmapConnectionException","httpStatus":504,"severity":"error","filePath":"lib/request/connect.py","lineNumber":959,"sourceCode":"                        errMsg = \"page not found (%d)\" % code\n                        raise SqlmapConnectionException(errMsg)\n                    else:\n                        debugMsg = \"page not found (%d)\" % code\n                        singleTimeLogMessage(debugMsg, logging.DEBUG)\n                elif ex.code == _http_client.GATEWAY_TIMEOUT:\n                    if ignoreTimeout:\n                        return None if not conf.ignoreTimeouts else \"\", None, None\n                    else:\n                        warnMsg = \"unable to connect to the target URL (%d - %s)\" % (ex.code, _http_client.responses[ex.code])\n                        if threadData.retriesCount < conf.retries and not kb.threadException:\n                            warnMsg += \". sqlmap is going to retry the request\"\n                            logger.critical(warnMsg)\n                            return Connect._retryProxy(**kwargs)\n                        elif kb.testMode:\n                            logger.critical(warnMsg)\n                            return None, None, None\n                        else:\n                            raise SqlmapConnectionException(warnMsg)\n                else:\n                    debugMsg = \"got HTTP error code: %d ('%s')\" % (code, status)\n                    logger.debug(debugMsg)\n\n        except (_urllib.error.URLError, socket.error, socket.timeout, _http_client.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException, TypeError, ValueError, OverflowError, AttributeError, OSError, AssertionError, KeyError):\n            tbMsg = traceback.format_exc()\n\n            if conf.debug:\n                dataToStdout(tbMsg)\n\n            if checking:\n                return None, None, None\n            elif \"KeyError:\" in tbMsg:\n                if \"content-length\" in tbMsg:\n                    return None, None, None\n                else:\n                    raise\n            elif \"AttributeError:\" in tbMsg:","sourceCodeStart":941,"sourceCodeEnd":977,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/connect.py#L941-L977","documentation":"Error \"unable to connect to the target URL (%d - %s)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/connect.py:959 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"}