Skip to main content
Version: 1.2.1-beta.1

Exit Codes

This document lists the custom exit codes used in the application and their meanings.

Exit CodeCommandReason for Exit
1mapInvalid AI option provided. The --ai option received a value that is not supported.
2runInvalid AI option provided. The --ai option received a value that is not supported.
3lazyloadInvalid URL or file path provided. The -u or --url option received a value that is not a valid URL or an existing file path.
4mapInvalid format provided. The --format option received a value that is not supported.
5mapMissing technology. The -t or --tech option was not specified.
6mapMissing directory. The -d or --directory option was not specified.
7refactorMapped JSON file does not exist. The -m or --mapped-json option received a value that is not an existing file path.
8refactorInvalid technology provided. The -t or --tech option received a value that is not supported.
9refactorOutput directory already exists. The -o or --output option received a value that is an existing directory path.
10runTechnology not detected. The tool was unable to detect the technology used by the target URL.
11runOutput directory already exists. The -o or --output option received a value that is an existing directory path.
12runInvalid URL provided. The -u or --url option received a value that is not a valid URL.
13runInvalid URL in file. The file provided to the -u or --url option contains an invalid URL.
14runTool output directory already exists. The default output directory js_recon_run_output already exists when running in batch mode.
15stringsDirectory does not exist. The -d or --directory option received a value that is not an existing directory path.
16stringsMissing -e flag. The -p or --openapi flag was used without the -e flag.
17lazyloadSubsequent requests URLs file does not exist. This is an internal error, but can be caused if the strings module is not run with the -e flag first.
18runFirewall blocking API Gateway. The tool detected a firewall blocking the AWS API Gateway. Please try again without the API Gateway.
19mapOpenAI API key not found. Please provide it via --openai-api-key or OPENAI_API_KEY environment variable.
20analyzeInvalid rules found. Some of the rules provided are invalid.
21lazyloadThe tool detected a header overflow. Please increase the limit by setting environment variable NODE_OPTIONS="--max-http-header-size=99999999". If the error still persists, please try again with a higher limit.