grafana / jmeter-to-k6

Converts JMeter .jmx files to k6 JS code
Apache License 2.0
69 stars 22 forks source link

UnhandledPromiseRejectionWarning: Error: Invalid HTTPSamplerProxy at Object.HTTPSamplerProxy #38

Open glauberlima opened 3 years ago

glauberlima commented 3 years ago

Error output

(node:91086) UnhandledPromiseRejectionWarning: Error: Invalid HTTPSamplerProxy
    at Object.HTTPSamplerProxy (/usr/local/lib/node_modules/jmeter-to-k6/src/element/HTTPSamplerProxy.js:32:11)
    at element (/usr/local/lib/node_modules/jmeter-to-k6/src/element.js:66:36)
    at module.exports (/usr/local/lib/node_modules/jmeter-to-k6/src/element.js:3:10)
    at elements (/usr/local/lib/node_modules/jmeter-to-k6/src/elements.js:20:19)
    at module.exports (/usr/local/lib/node_modules/jmeter-to-k6/src/elements.js:2:10)
    at Object.hashTree (/usr/local/lib/node_modules/jmeter-to-k6/src/element/hashTree.js:4:10)
    at element (/usr/local/lib/node_modules/jmeter-to-k6/src/element.js:66:36)
    at module.exports (/usr/local/lib/node_modules/jmeter-to-k6/src/element.js:3:10)
    at elements (/usr/local/lib/node_modules/jmeter-to-k6/src/elements.js:20:19)
    at module.exports (/usr/local/lib/node_modules/jmeter-to-k6/src/elements.js:2:10)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:91086) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:91086) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Steps to reproduce

System configuration

node --version
v14.14.0
npm --version
6.14.8
jmeter-to-k6 --version
1.0.0
Operating System
macOS Catalina 10.15.7

JMX input file

https://drive.google.com/file/d/1qTGD69JeK5Y7w44Ml4G2dPC-HqZ0nZr5/view?usp=sharing

jzubieta commented 3 years ago

I have the same problem