How to fix clearrun.config.json errors
Each config error names the problem. Fix that field and run again. The run exits 1 until the file is valid.
Last updated
Errors and fixes
| Message | Fix |
|---|---|
Config file not found: <path> | Check the path you passed to --config |
Config file is not valid JSON: <file> | Fix the JSON. Look for trailing commas or missing quotes |
Config file must contain a JSON object | The file must start with { and end with } |
Config "paths" must be an array of non-empty strings | Use "paths": ["responses/"], not a single string |
Config "threshold" must be a number from 0 to 100 | Use a plain number, such as 70 |
Config "maxIssues" must be a whole number, 0 or more | Use 0, 1, 2 and so on |
Config "baseUrl" must be a string | Put the URL in quotes |
Config "apiKey" must be a string | Put the key in quotes, or better, remove it |
A valid example
{
"paths": ["responses/"],
"threshold": 70,
"maxIssues": 3
}