Troubleshooting
Find the error in the list. Then do the steps of the solution in sequence.
ERROR: 'hurl' not found on PATH
hurl-orchestra calls the hurl command.
Solution:
- Install Hurl.
- Run
hurl --versionin the same shell.
A dry run does not need Hurl.
ERROR: no .hurl files found in <path>
The given directory has no .hurl files. This is an error, not an empty pass, so CI cannot go green with no tests.
Solution:
- Examine the path. It must contain the
.hurlfiles. - Use
--dry-runto check the directory before the run.
ERROR: <file> has unknown frontmatter keys: <keys>
The frontmatter has a field that hurl-orchestra does not know. A common cause is a typo such as dep for deps or output for outputs.
Solution:
- Compare the field with the frontmatter reference.
- Correct the name. Run
--dry-runto validate the file.
ERROR: deps for 'foo' must be a list
The frontmatter of the file has an incorrect type. Similar errors are for id, outputs, priority and args.
Solution:
- Open the file that the error names.
- Correct the field. For the types, read Frontmatter.
- Run
hurl-orchestra --dry-runto validate the change.
ERROR: 'foo' depends on 'bar' but no .hurl file or alias defines id: bar
No node has the ID in deps.
Solution:
- Make sure that a file has
id: bar, or the namebar.hurl. - Put that file in the same directory as
foo. - If you use
--no-deps, give every dependency file on the command line, or remove--no-deps. - Run
--dry-run --jsonand readresolvedto check the files that file mode adds.
ERROR: alias template 'X' not found (used as 'Y')
An alias names a template that the run did not load.
Solution:
- Make sure that the template file is in the same directory.
- Make sure that the template name is the ID of that file.
Circular dependency detected
The deps make a cycle.
Solution:
- Read the node IDs in the message.
- Remove one of the
depsin the cycle.
ERROR: env file not found
The file of --env-file does not exist.
Solution:
- Examine the path. A relative path starts at the current directory.
ERROR: secrets file not found
The file of --secrets-file does not exist.
Solution:
- Examine the path. A relative path starts at the current directory.
ERROR: hurl 7.0.0 is too old
The hurl command on the PATH is older than 7.1.0.
Solution:
- Install Hurl 7.1.0 or a later version. hurl-orchestra runs its tests with 8.1.0.
- Run
hurl --versionin the same shell.
WARNING: cannot read the hurl version
hurl-orchestra found the hurl command, but the output of hurl --version is not in the usual format.
Solution:
- Run
hurl --versionand examine the output. - Install the official Hurl binary from the Hurl website.
ERROR: --test is managed by hurl-orchestra
A Hurl option that the tool owns is in the flags or in the args frontmatter. The same error shows for --report-json and --secrets-file.
Solution:
- Remove the option from the command or from
args. - For a report, use
--report-zipor--report-ctrf. - For a secrets file, use the hurl-orchestra
--secrets-fileoption.
Hurl could not parse the file (exit code 2)
Hurl rejected the syntax of the file. hurl-orchestra does not retry this failure, because a retry cannot repair the file.
Solution:
- Read the Hurl error below the message. It shows the line and the token.
- Correct the file.
- Run
hurl-orchestra --dry-runto check the frontmatter, then run the suite again.
Hurl rejected the command line (exit code 1)
Hurl rejected an option. hurl-orchestra does not retry this failure.
Solution:
- Compare each Hurl option with the Hurl manual.
- Remove the reserved options that Hurl compatibility lists.
- Run
hurl --versionand make sure that the version is 8.1.0 or later for the new options.
Hurl cannot find a variable
Hurl shows an error for a variable without a value, for example base_url.
Solution:
- Read the
Variables fileline at the start of the run. If it is not there, no variables file applies. - If you gave files, read the
NOTEline. Add--env-filewith the path that it shows. - For a variable from a dependency, make sure that the producer is in
depsand the output is in itsoutputs.
FAILED: foo, Missing expected outputs
The node declared an output, and the Hurl report has no capture with that name.
Solution:
- Make sure that the
[Captures]section defines each name inoutputs. - Make sure that the response contains the value at that path.
SKIPPED: foo (failed dependency: bar)
The node did not run because bar failed.
Solution:
- Correct the failure of
bar. The node runs again when its inputs exist.
FAILED: foo, Hurl timed out after 300 seconds
One Hurl call reached the limit. hurl-orchestra gives the value of --timeout to Hurl as --max-time. Thus Hurl writes a report before the process stops.
Solution:
- Read the report of the node. It shows the request that reached the limit.
- Add a timeout to the request, for example with
argsandmax-time. - If the whole suite needs more time, run with
--timeout SECONDS.
A Hurl config: line shows an option that you did not set
Hurl 8.1 reads a config file at $XDG_CONFIG_HOME/hurl/config or ~/.config/hurl/config. The file supplies default options to each call.
Solution:
- Read the file at the path in the line.
- Remove the option that you do not want.
- Or set the option on the hurl-orchestra command line. A command line option wins over the config file.
FAILED: foo, known failure 'name' expired on date
The failure matched an entry, but its until date is in the past.
Solution:
- Examine if the cause still exists.
- If it exists, set a new
untildate and update thereason. - If it does not exist, remove the entry.
ERROR: known_failures[0] for 'foo' …
An entry in known_failures is not valid.
Solution:
- Make sure that the entry has a
nameand areason. - Make sure that the entry has one or more signature fields.
- Make sure that each regular expression is valid and each name is unique.
Diagram output already exists
--diagram does not replace a file.
Solution:
- Add
--diagram-overwrite, or give a different--diagram-output.
