Again: Invalid AWS Lambda parameters used in this request

We had the same issue long time ago with one of our websites and now it happened to another one. This website is old but we needed to deploy a change today.
During the build we got this error:
1:47:43 PM: Failed to create function: invalid parameter for function creation: Invalid AWS Lambda parameters used in this request.
There was another forum branch that is closed right now: Build script returned non-zero exit code. Deploy did not succeed with HTTP Error 400
You helped there by disabling some feature.
Can you help us again?

Site ID: 6e3b21c7-0f6b-4469-9432-7b39f27fd4d1

The build log:

1:44:29 PM: build-image version: ba55f85ffe1878034fe03904205af79aa234f545 (focal)
1:44:29 PM: buildbot version: 766d2c1ac7b7596f18b546cb6bf13962d157b033
1:44:29 PM: Fetching cached dependencies
1:44:29 PM: Failed to fetch cache, continuing with build
1:44:29 PM: Starting to prepare the repo for build
1:44:29 PM: No cached dependencies found. Cloning fresh repo
1:44:29 PM: git clone --filter=blob:none https://github.com/magnetco/process-quickly
1:44:30 PM: Preparing Git Reference refs/heads/master
1:44:31 PM: Custom publish path detected. Proceeding with the specified path: 'web/dist'
1:44:32 PM: Starting to install dependencies
1:44:33 PM: mise python@3.13.3   install
1:44:33 PM: mise python@3.13.3   download cpython-3.13.3+20250409-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
1:44:33 PM: mise python@3.13.3   extract cpython-3.13.3+20250409-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
1:44:34 PM: mise python@3.13.3   python --version
1:44:34 PM: mise python@3.13.3   Python 3.13.3
1:44:34 PM: mise python@3.13.3 ✓ installed
1:44:34 PM: Python version set to 3.13
1:44:35 PM: Collecting pipenv
1:44:35 PM:   Downloading pipenv-2025.0.2-py3-none-any.whl.metadata (17 kB)
1:44:35 PM: Collecting certifi (from pipenv)
1:44:35 PM:   Downloading certifi-2025.4.26-py3-none-any.whl.metadata (2.5 kB)
1:44:35 PM: Collecting packaging>=22 (from pipenv)
1:44:35 PM:   Downloading packaging-25.0-py3-none-any.whl.metadata (3.3 kB)
1:44:35 PM: Collecting setuptools>=67 (from pipenv)
1:44:35 PM:   Downloading setuptools-80.3.1-py3-none-any.whl.metadata (6.5 kB)
1:44:35 PM: Collecting virtualenv>=20.24.2 (from pipenv)
1:44:36 PM:   Downloading virtualenv-20.31.1-py3-none-any.whl.metadata (4.5 kB)
1:44:36 PM: Collecting distlib<1,>=0.3.7 (from virtualenv>=20.24.2->pipenv)
1:44:36 PM:   Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
1:44:36 PM: Collecting filelock<4,>=3.12.2 (from virtualenv>=20.24.2->pipenv)
1:44:36 PM:   Downloading filelock-3.18.0-py3-none-any.whl.metadata (2.9 kB)
1:44:36 PM: Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.24.2->pipenv)
1:44:36 PM:   Downloading platformdirs-4.3.7-py3-none-any.whl.metadata (11 kB)
1:44:36 PM: Downloading pipenv-2025.0.2-py3-none-any.whl (3.0 MB)
1:44:36 PM:    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 59.6 MB/s eta 0:00:00
1:44:36 PM: Downloading packaging-25.0-py3-none-any.whl (66 kB)
1:44:36 PM: Downloading setuptools-80.3.1-py3-none-any.whl (1.2 MB)
1:44:36 PM:    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 59.9 MB/s eta 0:00:00
1:44:36 PM: Downloading virtualenv-20.31.1-py3-none-any.whl (6.1 MB)
1:44:36 PM:    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.1/6.1 MB 130.8 MB/s eta 0:00:00
1:44:36 PM: Downloading certifi-2025.4.26-py3-none-any.whl (159 kB)
1:44:36 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
1:44:36 PM: Downloading filelock-3.18.0-py3-none-any.whl (16 kB)
1:44:36 PM: Downloading platformdirs-4.3.7-py3-none-any.whl (18 kB)
1:44:36 PM: Installing collected packages: distlib, setuptools, platformdirs, packaging, filelock, certifi, virtualenv, pipenv
1:44:39 PM: Successfully installed certifi-2025.4.26 distlib-0.3.9 filelock-3.18.0 packaging-25.0 pipenv-2025.0.2 platformdirs-4.3.7 setuptools-80.3.1 virtualenv-20.31.1
1:44:39 PM: [notice] A new release of pip is available: 24.3.1 -> 25.1.1
1:44:39 PM: [notice] To update, run: pip install --upgrade pip
1:44:39 PM: Attempting Ruby version 2.7.2, read from environment
1:44:40 PM: Using Ruby version 2.7.2
1:44:41 PM: Started restoring cached go cache
1:44:41 PM: Finished restoring cached go cache
1:44:41 PM: Installing Go version 1.14.4 (requested 1.14.4)
1:44:44 PM: go version go1.14.4 linux/amd64
1:44:45 PM: Using PHP version 8.0
1:44:47 PM: Downloading and installing node v16.20.2...
1:44:47 PM: Downloading https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz...
1:44:48 PM: Computing checksum with sha256sum
1:44:48 PM: Checksums matched!
1:44:50 PM: Now using node v16.20.2 (npm v8.19.4)
1:44:50 PM: Enabling Node.js Corepack
1:44:50 PM: Started restoring cached build plugins
1:44:50 PM: Finished restoring cached build plugins
1:44:50 PM: Started restoring cached corepack dependencies
1:44:50 PM: Finished restoring cached corepack dependencies
1:44:50 PM: Started restoring cached yarn cache
1:44:50 PM: Finished restoring cached yarn cache
1:44:50 PM: Installing Yarn version 1.22.17
1:44:50 PM: Preparing yarn@1.22.17 for immediate activation...
1:44:51 PM: yarn workspaces detected
1:44:51 PM: Installing npm packages using Yarn version 1.22.17
1:44:51 PM: yarn install v1.22.17
1:44:52 PM: [1/4] Resolving packages...
1:44:52 PM: [2/4] Fetching packages...
1:45:39 PM: [3/4] Linking dependencies...
1:45:39 PM: warning " > vue-instantsearch@3.7.0" has unmet peer dependency "algoliasearch@>= 3.32.0 < 5".
1:45:39 PM: warning " > vue-instantsearch@3.7.0" has unmet peer dependency "vue@^2.6.0".
1:45:39 PM: warning " > vue-instantsearch@3.7.0" has unmet peer dependency "vue-server-renderer@^2.6.11".
1:45:39 PM: warning "vue-instantsearch > algoliasearch-helper@3.5.4" has unmet peer dependency "algoliasearch@>= 3.1 < 5".
1:45:39 PM: warning " > process-quickly@1.0.0" has unmet peer dependency "chalk@^3.0.0".
1:45:39 PM: warning " > process-quickly@1.0.0" has unmet peer dependency "consola@^2.15.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @nuxtjs/sanity@0.9.2" has unmet peer dependency "chalk@^3.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @nuxtjs/sanity@0.9.2" has unmet peer dependency "consola@^2.15.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vue-toastification@1.7.14" has unmet peer dependency "vue@^2.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vue2-storage@6.1.3" has unmet peer dependency "vue@^2".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vuex-persist@3.1.3" has unmet peer dependency "vuex@>=2.5".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vuex-persistedstate@4.1.0" has unmet peer dependency "vuex@^3.0 || ^4.0.0-rc".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > css-loader@5.2.4" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > sass-loader@10.2.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > tailwind-config-viewer@1.5.1" has incorrect peer dependency "tailwindcss@1 || 2 || 2.0.1-compat".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vue-infinite-loading@2.4.5" has unmet peer dependency "vue@^2.6.10".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vue-recaptcha@1.3.0" has unmet peer dependency "vue@^2.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > vue-swal@1.0.0" has unmet peer dependency "vue@^2.3.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-autocomplete-tags@1.0.1" has unmet peer dependency "@sanity/client@>= 0.135.x".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-dashboard-widget-document-list@0.0.11" has incorrect peer dependency "@sanity/base@^1".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-dashboard-widget-document-list@0.0.11" has incorrect peer dependency "@sanity/components@^1".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-dashboard-widget-document-list@0.0.11" has unmet peer dependency "rxjs@^6.1.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-graph-view@1.0.4" has unmet peer dependency "@sanity/client@>= 1.150.x".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media@1.1.2" has unmet peer dependency "@sanity/client@>= 2.0.1".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-order-documents@0.0.20" has unmet peer dependency "@sanity/client@>= 0.135.x".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > nuxt > @nuxt/components@2.2.1" has unmet peer dependency "consola@*".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @aceforth/nuxt-optimized-images > raw-loader@4.0.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @aceforth/nuxt-optimized-images > url-loader@4.1.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @nuxt/postcss8 > postcss-loader@4.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @nuxt/types > sass-loader@10.1.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/base > react-sortable-hoc@1.11.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/base > react-sortable-hoc@1.11.0" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/base > react-split-pane@0.1.92" has incorrect peer dependency "react@^16.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/base > react-split-pane@0.1.92" has incorrect peer dependency "react-dom@^16.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-react@7.13.13" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-typescript@7.13.0" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/register@7.13.16" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @sanity/webpack-integration@2.29.5" has unmet peer dependency "webpack@>= 1.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/default-layout > @sanity/logos@1.1.12" has unmet peer dependency "@sanity/color@^2.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/desk-tool > react-json-inspector@7.1.1" has incorrect peer dependency "react@^15.0.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/vision > react-codemirror2@6.0.1" has incorrect peer dependency "react@>=15.5 <=16.x".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-autocomplete-tags > @babel/plugin-transform-react-jsx@7.13.12" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > react-file-icon@1.0.0" has incorrect peer dependency "react@^16.2.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > react-file-icon@1.0.0" has incorrect peer dependency "react-dom@^16.2.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > react-virtualized-auto-sizer@1.0.3" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > react-virtualized-auto-sizer@1.0.3" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > react-window-infinite-loader@1.0.5" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > react-window-infinite-loader@1.0.5" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > styled-components@5.2.1" has unmet peer dependency "react-is@>= 16.8.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > theme-ui@0.3.5" has incorrect peer dependency "react@^16.11.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly > @nuxtjs/firebase > firebase-admin > @firebase/database-compat@0.1.2" has unmet peer dependency "@firebase/app-compat@0.x".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-react > @babel/plugin-transform-react-display-name@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-react > @babel/plugin-transform-react-jsx-development@7.12.17" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-react > @babel/plugin-transform-react-pure-annotations@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-typescript > @babel/plugin-transform-typescript@7.13.0" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @sanity/server > @hot-loader/react-dom@16.14.0" has incorrect peer dependency "react@^16.14.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-autocomplete-tags > @babel/plugin-transform-react-jsx > @babel/plugin-syntax-jsx@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > theme-ui > @theme-ui/color-modes@0.3.5" has incorrect peer dependency "react@^16.11.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > theme-ui > @theme-ui/components@0.3.5" has incorrect peer dependency "react@^16.8.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > theme-ui > @theme-ui/core@0.3.5" has incorrect peer dependency "react@^16.11.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > theme-ui > @theme-ui/mdx@0.3.5" has incorrect peer dependency "react@^16.11.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > sanity-plugin-media > theme-ui > @theme-ui/theme-provider@0.3.5" has incorrect peer dependency "react@^16.11.0".
1:45:39 PM: warning "workspace-aggregator-c728ff3b-8b8f-4574-a4d9-9b74f9fc7d44 > process-quickly-studio > @sanity/core > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
1:45:39 PM: warning Workspaces can only be enabled in private projects.
1:45:39 PM: warning Workspaces can only be enabled in private projects.
1:45:39 PM: warning Workspaces can only be enabled in private projects.
1:45:39 PM: warning Workspaces can only be enabled in private projects.
1:45:39 PM: warning Workspaces can only be enabled in private projects.
1:46:27 PM: [4/4] Building fresh packages...
1:46:33 PM: success Saved lockfile.
1:46:33 PM: $ netlify-lambda install lambdas
1:46:34 PM: netlify-lambda: installing function dependencies
1:46:34 PM: stripe/ dependencies installed
1:46:34 PM: contact_form/ dependencies installed
1:46:34 PM: Done in 102.69s.
1:46:34 PM: npm packages installed using Yarn
1:46:35 PM: Successfully installed dependencies
1:46:35 PM: Starting build script
1:46:36 PM: Detected 1 framework(s)
1:46:36 PM: "nuxt" at version "2.15.8"
1:46:36 PM: Section completed: initializing
1:46:37 PM: ​
1:46:37 PM: Netlify Build                                                 
1:46:37 PM: ────────────────────────────────────────────────────────────────
1:46:37 PM: ​
1:46:37 PM: ❯ Version
1:46:37 PM:   @netlify/build 32.1.0
1:46:37 PM: ​
1:46:37 PM: ❯ Flags
1:46:37 PM:   accountId: 5bbc11af1f12b77fee992711
1:46:37 PM:   baseRelDir: true
1:46:37 PM:   buildId: 6819f60a8510e800084bb171
1:46:37 PM:   deployId: 6819f60a8510e800084bb173
1:46:37 PM: ​
1:46:37 PM: ❯ Current directory
1:46:37 PM:   /opt/build/repo/web
1:46:37 PM: ​
1:46:37 PM: ❯ Config file
1:46:37 PM:   /opt/build/repo/web/netlify.toml
1:46:37 PM: ​
1:46:37 PM: ❯ Context
1:46:37 PM:   production
1:46:37 PM: ​
1:46:37 PM: ❯ Installing plugins
1:46:37 PM:    - netlify-plugin-inline-functions-env@1.0.8
1:46:39 PM: ​
1:46:39 PM: ❯ Loading plugins
1:46:39 PM:    - ./netlify-plugins/preinstall-lambda-dependencies@1.0.0 from netlify.toml
1:46:39 PM:    - ./netlify-plugins/netlify-plugin-safe-contextual-env@1.0.0 from netlify.toml
1:46:39 PM:    - netlify-plugin-inline-functions-env@1.0.8 from netlify.toml
1:46:40 PM: preinstalling lambda dependencies
1:46:42 PM: ...done
1:46:42 PM: Variable SANITY_DEPLOY_STUDIO_TOKEN exists, but it's not empty. Make sure it's set to empty value. Skipping override...
1:46:42 PM: Nothing found... keeping default ENVs
1:46:42 PM: inlining /opt/build/repo/web/lambdas/contact_form/contact_form.js
1:46:42 PM: inlining /opt/build/repo/web/lambdas/contact_form/email.templates.js
1:46:42 PM: inlining /opt/build/repo/web/lambdas/contact_form/env.js
1:46:42 PM: inlining /opt/build/repo/web/lambdas/stripe/env.js
1:46:42 PM: inlining /opt/build/repo/web/lambdas/stripe/stripe.js
1:46:42 PM: ​
1:46:42 PM: build.command from netlify.toml                               
1:46:42 PM: ────────────────────────────────────────────────────────────────
1:46:42 PM: ​
.....
1:47:17 PM: $ netlify-lambda install lambdas
1:47:17 PM: netlify-lambda: installing function dependencies
1:47:18 PM: stripe/ dependencies installed
1:47:18 PM: contact_form/ dependencies installed
1:47:18 PM: Done in 0.84s.
1:47:18 PM: yarn generate
1:47:18 PM: yarn run v1.22.17
1:47:18 PM: $ nuxt generate
1:47:41 PM: Done in 22.74s.
1:47:41 PM: ​
1:47:41 PM: (build.command completed in 58.5s)
1:47:41 PM: ​
1:47:41 PM: Functions bundling                                            
1:47:41 PM: ────────────────────────────────────────────────────────────────
1:47:41 PM: ​
1:47:41 PM: Packaging Functions from lambdas directory:
1:47:41 PM:  - contact_form/contact_form.js
1:47:41 PM:  - stripe/stripe.js
1:47:41 PM: ​
1:47:42 PM: ​
1:47:42 PM: (Functions bundling completed in 854ms)
1:47:42 PM: ​
1:47:42 PM: Deploy site                                                   
1:47:42 PM: ────────────────────────────────────────────────────────────────
1:47:42 PM: ​
1:47:42 PM: Starting to deploy site from 'web/dist'
1:47:42 PM: Calculating files to upload
1:47:42 PM: 4 new file(s) to upload
1:47:42 PM: 2 new function(s) to upload
1:47:43 PM: Failed to create function: invalid parameter for function creation: Invalid AWS Lambda parameters used in this request.
1:47:43 PM: Failed to create function: invalid parameter for function creation: Invalid AWS Lambda parameters used in this request.
1:47:43 PM: Failed to upload file: stripe
1:47:43 PM: Failed to upload file: contact_form
1:47:43 PM: Section completed: deploying
1:47:43 PM: ​
1:47:43 PM: Error deploying                                               
1:47:43 PM: ────────────────────────────────────────────────────────────────
1:47:43 PM: ​
1:47:43 PM:   Error message
1:47:43 PM:   Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default  &{Code:400 Message:Failed to create function: invalid parameter for function creation: Invalid AWS Lambda parameters used in this request.}
1:47:43 PM: ​
1:47:43 PM:   Error location
1:47:43 PM:   At deploy the stage with HTTP status code '400'
1:47:43 PM: ​
1:47:43 PM:   Resolved config
1:47:43 PM:   build:
1:47:43 PM:     base: /opt/build/repo/web
1:47:43 PM:     command: make
1:47:43 PM:     commandOrigin: config
1:47:43 PM:     environment:
1:47:43 PM:       - PRODUCTION_SANITY_DEPLOY_STUDIO_TOKEN
1:47:43 PM:       - SANITY_DEPLOY_STUDIO_TOKEN
1:47:43 PM:       - SENDGRID_API_KEY
1:47:43 PM:       - STRIPE_SECRET_KEY
1:47:43 PM:       - NODE_VERSION
1:47:43 PM:       - NPM_VERSION
1:47:43 PM:       - YARN_VERSION
1:47:43 PM:       - NETLIFY_USE_YARN
1:47:43 PM:       - AWS_LAMBDA_JS_RUNTIME
1:47:43 PM:       - SANITY_STUDIO_API_PROJECT_ID
1:47:43 PM:       - SANITY_STUDIO_API_VERSION
1:47:43 PM:       - SANITY_STUDIO_API_DATASET
1:47:43 PM:       - COMPANY_NAME
1:47:43 PM:       - CONTACT_EMAIL
1:47:43 PM:       - FROM_EMAIL
1:47:43 PM:       - CONTACT_REPLY_TO
1:47:43 PM:       - SENDGRID_WELCOME_TEMPLATE_ID
1:47:43 PM:       - GOOGLE_GTAG_ID
1:47:43 PM:       - FIREBASE_APP_ID
1:47:43 PM:       - FIREBASE_API_KEY
1:47:43 PM:       - FIREBASE_AUTH_DOMAIN
1:47:43 PM:       - FIREBASE_PROJECT_ID
1:47:43 PM:       - FIREBASE_STORAGE_BUCKET
1:47:43 PM:       - FIREBASE_MESSAGING_SENDER_ID
1:47:43 PM:       - FIREBASE_MEASUREMENT_ID
1:47:43 PM:       - SENTRY_DSN
1:47:43 PM:     publish: /opt/build/repo/web/dist
1:47:43 PM:     publishOrigin: config
1:47:43 PM:   functionsDirectory: /opt/build/repo/web/lambdas
1:47:43 PM:   plugins:
1:47:43 PM:     - inputs: {}
1:47:43 PM:       origin: config
1:47:43 PM:       package: ./netlify-plugins/preinstall-lambda-dependencies
1:47:43 PM:     - inputs: {}
1:47:43 PM:       origin: config
1:47:43 PM:       package: ./netlify-plugins/netlify-plugin-safe-contextual-env
1:47:43 PM:     - inputs: {}
1:47:43 PM:       origin: config
1:47:43 PM:       package: netlify-plugin-inline-functions-env
1:47:43 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:47:44 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
1:47:44 PM: Failing build: Failed to build site
1:47:44 PM: Finished processing build request in 3m15.155s

Thanks!

This is done. Please try to re-deploy.

Hi!
Tried without cache clear - failed (deployment id 681bb948ea00c4c2720d5910).
With cache clear - failed with the same error as well (id 681bc87bc60f3c042e9c3983).
Should I try something else?
Thanks for your help…

@hrishikesh do you have any updates on that?
Appreciate your help!

Any updates on that?
Thanks…