{"record":{"id":"5d683fcfbfc7e85e","repo":"sqlmapproject/sqlmap","slug":"option-r-is-incompatible-with-option-u-u","errorCode":null,"errorMessage":"option '-r' is incompatible with option '-u' ('--url')","messagePattern":"option '-r' is incompatible with option '-u' \\('--url'\\)","errorType":"exception","errorClass":"SqlmapSyntaxException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":3008,"sourceCode":"    if conf.csrfUrl and not conf.csrfToken:\n        errMsg = \"option '--csrf-url' requires usage of option '--csrf-token'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.csrfMethod and not conf.csrfToken:\n        errMsg = \"option '--csrf-method' requires usage of option '--csrf-token'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.csrfData and not conf.csrfToken:\n        errMsg = \"option '--csrf-data' requires usage of option '--csrf-token'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.csrfToken and conf.threads > 1:\n        errMsg = \"option '--csrf-token' is incompatible with option '--threads'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.requestFile and conf.url and conf.url != DUMMY_URL:\n        errMsg = \"option '-r' is incompatible with option '-u' ('--url')\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.direct and conf.proxy:\n        errMsg = \"option '-d' is incompatible with option '--proxy'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.direct and conf.tor:\n        errMsg = \"option '-d' is incompatible with switch '--tor'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if not conf.technique:\n        errMsg = \"option '--technique' can't be empty\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.tor and conf.ignoreProxy:\n        errMsg = \"switch '--tor' is incompatible with switch '--ignore-proxy'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.tor and conf.proxy:","sourceCodeStart":2990,"sourceCodeEnd":3026,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L2990-L3026","documentation":"Startup mutual-exclusivity guard in _basicOptionValidation: -r/--request-file (conf.requestFile) replays a stored raw request, so also giving -u/--url (conf.url) is contradictory unless the URL is the internal DUMMY_URL placeholder used by sqlmap's own tooling. Fires when both are set and conf.url differs from DUMMY_URL.","triggerScenarios":"Thrown at lib/core/option.py:3008 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove -u/--url; the request file already contains the target","Remove -r and pass target options via -u/--url instead"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}