artillery: Unzipped size must be smaller than 262144000 bytes
Version info:
2.0.0.-30
Running this command:
artillery run --platform aws:lambda --platform-opt region=ap-northeast-2 --platform-opt memory-size=2048 --count 25 blitz.yml
I expected to see this happen:
I try to run your demo file which run artillery on lambda, but when I ran command I faced exceeded size error from the aws lambda. I tried both node 16 and node 18 but it’s same.
Instead, this happened:
λ Creating AWS Lambda function...
- Bundling test data
- blitz.yml
- Installing dependencies
- Creating zip package
Preparing AWS environment...
⠹ /usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/protocol/json.js:52
resp.error = util.error(new Error(), error);
^
InvalidParameterValueException: Unzipped size must be smaller than 262144000 bytes
at Object.extractError (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/protocol/json.js:52:27)
at Request.extractError (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/protocol/rest_json.js:61:8)
at Request.callListeners (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/request.js:686:14)
at Request.transition (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/usr/local/Cellar/nvm/0.39.3/versions/node/v18.14.2/lib/node_modules/artillery/node_modules/aws-sdk/lib/request.js:688:12) {
code: 'InvalidParameterValueException',
time: 2023-03-09T02:17:12.706Z,
requestId: '48580657-856e-4e17-ab49-e4f1e659cac9',
statusCode: 400,
retryable: false,
retryDelay: 35.40847299116279
}
Node.js v18.14.2
Files being used:
<relevant yaml/js/csv go here>
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (6 by maintainers)
Pulling the latest changes from the
main
branch worked for me. Usenpm install
on root level and then./packages/artillery/bin/run run --platform aws:lambda path/to/script.yml
.@raahelred I am no longer working on the project using artillery, sorry.
@hassy I had the same issue. I tried running from
main
and it worked, thanks.A successful artillery run from last week produced a lambda zipfile size of 46.3MB in the S3 bucket, unzipped just below 250MB. Today, the zipped size is 55.8MB, roughly 330MB unzipped. Lambda quotas are 250 MB (unzipped), which yields todays errors when trying to run artillery.
I tried multiple downgrades in the Artillery version with no success. Downstream dependency issue?