Home
Support Forums

Request must be smaller than 69905067 bytes for the CreateFunction operation, nuxt

There are the logs… i think the problem is the library that im using in functions/wzrequest.js ?
It’s called call-of-duty-api
You can see my whole app here

11:06:13 PM: Build ready to start
11:06:14 PM: build-image version: 653805ca4a64301556e56dc4b321ef8fc20cbb7c
11:06:14 PM: build-image tag: v3.8.2
11:06:14 PM: buildbot version: b50f7794ae135853b24b9a7e3cd11f2417780d46
11:06:14 PM: Fetching cached dependencies
11:06:14 PM: Starting to download cache of 106.7MB
11:06:15 PM: Finished downloading cache in 1.063691007s
11:06:15 PM: Starting to extract cache
11:06:19 PM: Finished extracting cache in 3.731451425s
11:06:19 PM: Finished fetching cache in 4.837960902s
11:06:19 PM: Starting to prepare the repo for build
11:06:20 PM: Preparing Git Reference refs/heads/master
11:06:20 PM: Parsing package.json dependencies
11:06:21 PM: Starting build script
11:06:21 PM: Installing dependencies
11:06:21 PM: Python version set to 2.7
11:06:21 PM: Started restoring cached node version
11:06:24 PM: Finished restoring cached node version
11:06:24 PM: v12.18.0 is already installed.
11:06:25 PM: Now using node v12.18.0 (npm v6.14.4)
11:06:25 PM: Started restoring cached build plugins
11:06:25 PM: Finished restoring cached build plugins
11:06:25 PM: Attempting ruby version 2.7.2, read from environment
11:06:26 PM: Using ruby version 2.7.2
11:06:26 PM: Using PHP version 5.6
11:06:26 PM: Started restoring cached node modules
11:06:26 PM: Finished restoring cached node modules
11:06:27 PM: Installing NPM modules using NPM version 6.14.4
11:06:34 PM: > puppeteer@10.1.0 install /opt/build/repo/node_modules/puppeteer
11:06:34 PM: > node install.js
11:06:41 PM: Chromium (884014) downloaded to /opt/build/repo/node_modules/puppeteer/.local-chromium/linux-884014
11:06:42 PM: npm WARN vue-cli-plugin-vuetify-admin@0.5.7 requires a peer of @vue/cli-service@^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself.
11:06:42 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
11:06:42 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:06:42 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
11:06:42 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:06:42 PM: added 67 packages from 56 contributors, updated 1 package and audited 1389 packages in 14.751s
11:06:43 PM: 100 packages are looking for funding
11:06:43 PM:   run `npm fund` for details
11:06:43 PM: found 2 moderate severity vulnerabilities
11:06:43 PM:   run `npm audit fix` to fix them, or `npm audit` for details
11:06:43 PM: NPM modules installed
11:06:43 PM: Started restoring cached go cache
11:06:43 PM: Finished restoring cached go cache
11:06:43 PM: go version go1.14.4 linux/amd64
11:06:43 PM: go version go1.14.4 linux/amd64
11:06:43 PM: Installing missing commands
11:06:43 PM: Verify run directory
11:06:44 PM: ​
11:06:44 PM: ────────────────────────────────────────────────────────────────
11:06:44 PM:   Netlify Build                                                 
11:06:44 PM: ────────────────────────────────────────────────────────────────
11:06:44 PM: ​
11:06:44 PM: ❯ Version
11:06:44 PM:   @netlify/build 17.4.1
11:06:44 PM: ​
11:06:44 PM: ❯ Flags
11:06:44 PM:   deployId: 6104b0158ad2040007f39cb5
11:06:44 PM: ​
11:06:44 PM: ❯ Current directory
11:06:44 PM:   /opt/build/repo
11:06:44 PM: ​
11:06:44 PM: ❯ Config file
11:06:44 PM:   /opt/build/repo/netlify.toml
11:06:44 PM: ​
11:06:44 PM: ❯ Context
11:06:44 PM:   production
11:06:44 PM: ​
11:06:44 PM: ────────────────────────────────────────────────────────────────
11:06:44 PM:   1. Build command from Netlify app                             
11:06:44 PM: ────────────────────────────────────────────────────────────────
11:06:44 PM: ​
11:06:44 PM: $ npm run generate
11:06:44 PM: > wz-statistics@1.0.0 generate /opt/build/repo
11:06:44 PM: > nuxt generate
11:07:39 PM: ​
11:07:39 PM: (build.command completed in 55.3s)
11:07:39 PM: ​
11:07:39 PM: ────────────────────────────────────────────────────────────────
11:07:39 PM:   2. Functions bundling                                         
11:07:39 PM: ────────────────────────────────────────────────────────────────
11:07:39 PM: ​
11:07:40 PM: Packaging Functions from functions directory:
11:07:40 PM:  - wzrequest.js
11:07:40 PM: ​
11:08:48 PM: ​
11:08:48 PM: (Functions bundling completed in 1m 8.6s)
11:08:48 PM: ​
11:08:48 PM: ────────────────────────────────────────────────────────────────
11:08:48 PM:   3. Deploy site                                                
11:08:48 PM: ────────────────────────────────────────────────────────────────
11:08:48 PM: ​
11:08:48 PM: Starting to deploy site from 'dist'
11:08:48 PM: Creating deploy tree 
11:08:49 PM: Creating deploy upload records
11:08:49 PM: 6 new files to upload
11:08:49 PM: 1 new functions to upload
11:08:56 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:08:58 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:00 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:03 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:05 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:08 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:14 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:19 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:26 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:42 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:09:55 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:10:19 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
11:10:19 PM: Failed to upload file: wzrequest
11:10:19 PM: Site deploy was successfully initiated
11:10:19 PM: ​
11:10:19 PM: (Deploy site completed in 1m 31.5s)
11:10:19 PM: ​
11:10:19 PM: ────────────────────────────────────────────────────────────────
11:10:19 PM:   Netlify Build Complete                                        
11:10:19 PM: ────────────────────────────────────────────────────────────────
11:10:19 PM: ​
11:10:19 PM: (Netlify Build completed in 3m 35.4s)
11:10:19 PM: Execution cancelled
11:10:19 PM: Error running command: Command was cancelled
11:10:19 PM: Failing build: Failed to build site
11:10:19 PM: Finished processing build request in 4m5.173754419s

Welcome to the forums @eimattz

Your function is too big, exceeding the limit put in place by AWS.