Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

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

Open
glauberlima opened this issue Oct 30, 2020 · 1 comment

Comments

@glauberlima
Copy link

glauberlima commented Oct 30, 2020

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 glauberlima changed the title Bug: UnhandledPromiseRejectionWarning: Error: Invalid HTTPSamplerProxy UnhandledPromiseRejectionWarning: Error: Invalid HTTPSamplerProxy at Object.HTTPSamplerProxy Oct 30, 2020
@jzubieta
Copy link

I have the same problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants