azavea / pfb-network-connectivity

PFB Bicycle Network Connectivity
Other
40 stars 10 forks source link

Tilegarden Lambda package too large #843

Open KlaasH opened 3 years ago

KlaasH commented 3 years ago

A CI deploy to staging just failed with:

updating Lambda lambda.updateFunctionCode FunctionName=pfbTilegardenStaging updating Lambda lambda.setupRequestListeners RequestEntityTooLargeException: Request must be smaller than 69905067 bytes for the UpdateFunctionCode operation at Object.extractError (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/protocol/json.js:52:27) at Request.extractError (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/protocol/rest_json.js:55:8) at Request.callListeners (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/sequential_executor.js:106:20) at Request.emit (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/sequential_executor.js:78:10) at Request.emit (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/request.js:688:14) at Request.transition (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/request.js:22:10) at AcceptorStateMachine.runTo (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/state_machine.js:14:12) at /opt/pfb/tilegarden/node_modules/aws-sdk/lib/state_machine.js:26:10 at Request. (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/request.js:38:9) at Request. (/opt/pfb/tilegarden/node_modules/aws-sdk/lib/request.js:690:12) { code: 'RequestEntityTooLargeException', time: 2021-06-04T16:22:01.378Z, requestId: 'f6b07c28-06e2-4750-afc3-fd685047d4a5', statusCode: 413, retryable: false, retryDelay: 2.1909554746327276 }

It worked a few months ago, so something in the dependencies must have grown since then and pushed the package over the size limit. So that's a bummer. We'll have to see if there are any dependencies we can trim or some other way to shrink the package.