Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Error: Unable to call file #145

Description

@joanrivera

Describe the bug
I try the code in the section Sending files and form data but it fail with Error: Unable to call `file`, which is undefined or falsey

To Reproduce

  1. Copy the sample code in Sending files and form data to a file sendfiles.yml
  2. Create a dummy file and update the respective path in sendfiles.yml: echo 'test content' > test.txt
  3. Execute Strest: strest sendfiles.yml

Return

[ Strest ] Found 1 test file(s)
[ Strest ] Schema validation: 1 of 1 file(s) passed

✖ Testing postwithfile failed (0.007s)
[ Validation ] Failed to process postwithfile request line using nunjucks:
 Template render error: (unknown path) [Line 9, Column 26]
  Error: Unable to call `file`, which is undefined or falsey

Response:
null
[ Strest ] Failed before finishing all requests

Additional context

  • Strest installation: npm i -g @strest/cli
  • node --version: v8.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions