sqlmapproject/sqlmap · error · SqlmapSyntaxException
option '--second-url' is incompatible with option…
Error message
option '--second-url' is incompatible with option '--second-req')
What it means
Validation guard in _basicOptionValidation: both --second-url (second-order URL only) and --second-req (second-order full request file) were provided; they are two ways of specifying the same second-order target and cannot coexist.
Solutions
- Keep only --second-url for a simple URL, or only --second-req when full request control is needed
- Move extra headers/cookies into the second-req request file instead of mixing options
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:2833 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/1012732a12144c36.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:2833
if conf.http2 and any((conf.tor, conf.proxy and conf.proxy.lower().startswith("socks"))):
errMsg = "HTTP/2 support is currently incompatible with SOCKS/Tor proxies"
raise SqlmapSyntaxException(errMsg)
if conf.uValues and conf.uChar:
errMsg = "option '--union-values' is incompatible with option '--union-char'"
raise SqlmapSyntaxException(errMsg)
if conf.base64Parameter and conf.tamper:
errMsg = "option '--base64' is incompatible with option '--tamper'"
raise SqlmapSyntaxException(errMsg)
if conf.eta and conf.verbose > defaults.verbose:
errMsg = "switch '--eta' is incompatible with option '-v'"
raise SqlmapSyntaxException(errMsg)
if conf.secondUrl and conf.secondReq:
errMsg = "option '--second-url' is incompatible with option '--second-req')"
raise SqlmapSyntaxException(errMsg)
if conf.direct and conf.url:
errMsg = "option '-d' is incompatible with option '-u' ('--url')"
raise SqlmapSyntaxException(errMsg)
if conf.direct and conf.dbms:
errMsg = "option '-d' is incompatible with option '--dbms'"
raise SqlmapSyntaxException(errMsg)
if conf.titles and conf.nullConnection:
errMsg = "switch '--titles' is incompatible with switch '--null-connection'"
raise SqlmapSyntaxException(errMsg)
if conf.dumpTable and conf.search:
errMsg = "switch '--dump' is incompatible with switch '--search'"
raise SqlmapSyntaxException(errMsg)
if conf.alert and os.environ.get("SQLMAP_UNSAFE_ALERT") != '1':View on GitHub (pinned to 0a35b20e39)