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

UnhandledPromiseRejectionWarning: Error: Unrecognized HTTPSamplerProxy property: monitor #31

Open
ivishh opened this issue Jul 18, 2020 · 3 comments

Comments

@ivishh
Copy link

ivishh commented Jul 18, 2020

im getting this error while converting jmx to k6

C:\WINDOWS\system32>jmeter-to-k6 C:\Users\Vishnu's\OneDrive\Desktop\Workup\goenterquiz\SkyQuiz.jmx -o skyquizz
(node:9728) UnhandledPromiseRejectionWarning: Error: Unrecognized HTTPSamplerProxy property: monitor
    at property (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element\HTTPSamplerProxy.js:292:13)
    at Object.HTTPSamplerProxy (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element\HTTPSamplerProxy.js:27:5)
    at element (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element.js:66:36)
    at module.exports (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element.js:3:10)
    at elements (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\elements.js:20:19)
    at module.exports (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\elements.js:2:10)
    at Object.hashTree (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element\hashTree.js:4:10)
    at element (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element.js:66:36)
    at module.exports (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\element.js:3:10)
    at elements (C:\Users\Vishnu's\AppData\Roaming\npm\node_modules\jmeter-to-k6\src\elements.js:20:19)
(node:9728) 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:9728) [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.

any idea?

@ivishh
Copy link
Author

ivishh commented Jul 18, 2020

@simskij

@simskij
Copy link
Contributor

simskij commented Aug 18, 2020

Hi,

Would you mind providing some kind of minimal reproduction example for this?

Thanks.

@poponuts
Copy link

I get a similar one (I am happy to send the JMX file separately if needed):

(node:4292) UnhandledPromiseRejectionWarning: Error: Unrecognized HTTPRequestDefaults value: image_parser
    at applyDefault (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element/HTTPSamplerProxy.js:153:13)
    at applyLevelDefaults (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element/HTTPSamplerProxy.js:52:5)
    at applyDefaults (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element/HTTPSamplerProxy.js:40:5)
    at Object.HTTPSamplerProxy (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element/HTTPSamplerProxy.js:21:3)
    at element (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element.js:66:36)
    at module.exports (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element.js:3:10)
    at elements (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/elements.js:20:19)
    at module.exports (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/elements.js:2:10)
    at Object.hashTree (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element/hashTree.js:4:10)
    at element (/Users/er/my-k6-repo/node_modules/jmeter-to-k6/src/element.js:66:36)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4292) 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:4292) [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.

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

3 participants