{"record":{"id":"097827cf47898f91","repo":"sqlmapproject/sqlmap","slug":"invalid-format-of-a-request-file","errorCode":null,"errorMessage":"invalid format of a request file","messagePattern":"invalid format of a request file","errorType":"exception","errorClass":"SqlmapSyntaxException","httpStatus":null,"severity":"error","filePath":"lib/core/common.py","lineNumber":5758,"sourceCode":"\n                    if kb.customInjectionMark in re.sub(PROBLEMATIC_CUSTOM_INJECTION_PATTERNS, \"\", value or \"\"):\n                        params = True\n\n            data = data.rstrip(\"\\r\\n\") if data else data\n\n            if getPostReq and (params or cookie or not checkParams):\n                if not port and hasattr(scheme, \"lower\") and scheme.lower() == \"https\":\n                    port = \"443\"\n                elif not scheme and port == \"443\":\n                    scheme = \"https\"\n\n                if conf.forceSSL:\n                    scheme = \"https\"\n                    port = port or \"443\"\n\n                if not host:\n                    errMsg = \"invalid format of a request file\"\n                    raise SqlmapSyntaxException(errMsg)\n\n                if not url.startswith(\"http\"):\n                    url = \"%s://%s:%s%s\" % (scheme or \"http\", host, port or \"80\", url)\n                    scheme = None\n                    port = None\n\n                if not (conf.scope and not re.search(conf.scope, url, re.I)):\n                    yield (url, conf.method or method, data, cookie, tuple(headers))\n\n    content = readCachedFileContent(reqFile)\n\n    if conf.scope:\n        logger.info(\"using regular expression '%s' for filtering targets\" % conf.scope)\n\n        try:\n            re.compile(conf.scope)\n        except Exception as ex:\n            errMsg = \"invalid regular expression '%s' ('%s')\" % (conf.scope, getSafeExString(ex))","sourceCodeStart":5740,"sourceCodeEnd":5776,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/common.py#L5740-L5776","documentation":"Error \"invalid format of a request file\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/common.py:5758 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"}