Closed allanclempe closed 11 months ago
Problem: When passed -p (POST-file) as .js file, the function does not get evaluated, hence the body is null.
-p
.js
loadtest -T "application/json" -p sample/post-file.js https://localhost:3000/api/sale
sample/post-file.js
export default (requestId) => { return { key: 'value', requestId: requestId } }
Cause: Dynamic import expects a function but was an object
Node version v18.17.1
Problem: When passed
-p
(POST-file) as.js
file, the function does not get evaluated, hence the body is null.sample/post-file.js
Cause: Dynamic import expects a function but was an object
Node version v18.17.1