{"record":{"id":"202c15b7df3bf4d2","repo":"sqlmapproject/sqlmap","slug":"scan-timed-out-after-s-second-s","errorCode":null,"errorMessage":"scan timed out after %s second(s)","messagePattern":"scan timed out after (.+?) second\\(s\\)","errorType":"exception","errorClass":"SqlmapError","httpStatus":null,"severity":"error","filePath":"lib/utils/library.py","lineNumber":158,"sourceCode":"        kwargs[\"creationflags\"] = getattr(subprocess, \"CREATE_NEW_PROCESS_GROUP\", 0)\n    elif sys.version_info >= (3, 2):\n        kwargs[\"start_new_session\"] = True                  # own process group -> clean group teardown\n    else:\n        kwargs[\"preexec_fn\"] = os.setsid\n\n    process = None\n    try:\n        process = subprocess.Popen(argv, **kwargs)\n\n        if timeout is None:\n            process.wait()\n        else:\n            end = time.time() + timeout\n            while process.poll() is None:\n                if time.time() > end:\n                    _terminateProcess(process)\n                    process.wait()\n                    raise SqlmapError(\"scan timed out after %s second(s)\" % timeout)\n                time.sleep(0.5)\n\n        try:\n            with open(report, \"rb\") as f:\n                return json.loads(f.read().decode(\"utf-8\", \"replace\"))\n        except (IOError, OSError, ValueError):\n            try:\n                with open(logFile, \"rb\") as f:\n                    tail = f.read().decode(\"utf-8\", \"replace\").strip()\n            except (IOError, OSError):\n                tail = \"\"\n            raise SqlmapError(\"scan did not produce a valid report (exit code %s)\\n%s\" % (getattr(process, \"returncode\", None), tail[-1000:]))\n    finally:\n        try:\n            os.close(logHandle)\n        except OSError:\n            pass\n        devnull.close()","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/utils/library.py#L140-L176","documentation":"Error \"scan timed out after %s second(s)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/utils/library.py:158 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"}