Open RichardSieg opened 2 years ago
I guess I have fixed it. In the beginning of the init
function we have to check the following:
if (typeof process.env.LOCAL_WORKER_ID === 'undefined') {
debug('Not running in a worker, exiting');
return;
}
I created an own fork where I also restructured the plugin to fit the documentation on how to write plugins. See https://github.com/RichardSieg/artillery-plugin-aws-sigv4/tree/feature/fix-custom-processor
@RichardSieg I ran into this same issue and tried out your version. It worked great! I'm looking forward to it being merged and a new build. Thanks for your efforts!
I tried loading some custom JS code to load and transform the request body. However, this is not possible when this plugin is activated. I get the following error message
My config (the relevant part)
I guess this is due to the following line of code:
https://github.com/Nordstrom/artillery-plugin-aws-sigv4/blob/cd0e66c2c57f157da8effff76f24baaf999a8bdb/lib/aws-sigv4.js#L147