jmeter-to-k6 icon indicating copy to clipboard operation
jmeter-to-k6 copied to clipboard

UnhandledPromiseRejectionWarning: Error: Invalid HTTPSamplerProxy at Object.HTTPSamplerProxy

Open glauberlima opened this issue 4 years ago • 1 comments

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

  • Run jmeter-to-k6 test.jmx -o test-k6.js

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

glauberlima avatar Oct 30 '20 16:10 glauberlima

I have the same problem

jzubieta avatar Feb 15 '21 19:02 jzubieta