{"record":{"id":"c3f4afcea8dce2c9","repo":"sqlmapproject/sqlmap","slug":"not-authorized-try-to-provide-right-http-authenti","errorCode":null,"errorMessage":"not authorized, try to provide right HTTP authentication type and valid credentials (%d). If this is intended, try to rerun by providing a valid value for option '--ignore-code'","messagePattern":"not authorized, try to provide right HTTP authentication type and valid credentials \\((.+?)\\)\\. If this is intended, try to rerun by providing a valid value for option '--ignore-code'","errorType":"http","errorClass":"SqlmapConnectionException","httpStatus":401,"severity":"error","filePath":"lib/request/connect.py","lineNumber":928,"sourceCode":"\n            if code in conf.abortCode:\n                errMsg = \"aborting due to detected HTTP code '%d'\" % code\n                singleTimeLogMessage(errMsg, logging.CRITICAL)\n                raise SystemExit\n\n            if ex.code not in (conf.ignoreCode or []):\n                if ex.code == TOO_MANY_REQUESTS_HTTP_CODE or (ex.code == _http_client.SERVICE_UNAVAILABLE and Connect._parseRetryAfter(responseHeaders) is not None):\n                    retried = Connect._rateLimitRetry(responseHeaders, ex.code, **kwargs)\n                    if retried is not None:\n                        return retried\n                    debugMsg = \"target kept rate-limiting after %d retries (%d)\" % (conf.retries, code)\n                    logger.debug(debugMsg)\n                elif ex.code == _http_client.UNAUTHORIZED:\n                    errMsg = \"not authorized, try to provide right HTTP \"\n                    errMsg += \"authentication type and valid credentials (%d). \" % code\n                    errMsg += \"If this is intended, try to rerun by providing \"\n                    errMsg += \"a valid value for option '--ignore-code'\"\n                    raise SqlmapConnectionException(errMsg)\n                elif chunked and ex.code in (_http_client.METHOD_NOT_ALLOWED, _http_client.LENGTH_REQUIRED):\n                    warnMsg = \"turning off HTTP chunked transfer encoding \"\n                    warnMsg += \"as it seems that the target site doesn't support it (%d)\" % code\n                    singleTimeWarnMessage(warnMsg)\n                    conf.chunked = kwargs[\"chunked\"] = False\n                    return Connect.getPage(**kwargs)\n                elif ex.code == _http_client.REQUEST_URI_TOO_LONG:\n                    warnMsg = \"request URI is marked as too long by the target. \"\n                    warnMsg += \"you are advised to try a switch '--no-cast' and/or '--no-escape'\"\n                    singleTimeWarnMessage(warnMsg)\n                elif ex.code == _http_client.NOT_FOUND:\n                    if raise404:\n                        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:","sourceCodeStart":910,"sourceCodeEnd":946,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/connect.py#L910-L946","documentation":"Error \"not authorized, try to provide right HTTP authentication type and valid credentials (%d). If this is intended, try to rerun by providing a valid value for option '--ignore-code'\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/connect.py:928 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"}