Invoking with path sends buffer instead of data
8base invoke-local <resolver name> -p <path to mock data>
works fine, but 8base invoke <resolver name> -p <path to mock data>
throws the error error: Variable "$data" got invalid value { type: "Buffer", data: [34, 116, 101, 115, 116, 34, 10] } at "data.inputArgs"; Expected type String. String cannot represent a non string value: { type: "Buffer", data: [34, 116, 101, 115, 116, 34, 10] }
Tested with the default mock JSON file and with text only in the file and gives this error regardless (just a longer buffer for bigger file).
Using mock flag throws error unknown argument
Using either -m
or --mock
flags throws Unknown argument: m
or Unknown argument: mock
respectively, and this happens for both invoke
and invoke-local
.
Details
Using CLI version 0.0.79 - believe this is the latest, as I used npm update -g 8base-cli
before testing the above
Reference: https://docs.8base.com/development-tools/cli/commands#invoke