# Error enqueueing build

**URL:** <https://answers.netlify.com/t/error-enqueueing-build/23922>\
**Category:** Support\
**Tags:** building, deployment\
**Created:** [October 6, 2020, 7:39pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922 "2020-10-06T19:39:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![awageh](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awageh](https://answers.netlify.com/u/awageh)\
**Post date:** [October 6, 2020, 7:39pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/1 "2020-10-06T19:39:04Z")

</div>

Hey! I’m having build issues with my site at prideam.netlify.app. Whenever a deploy is triggered by the webhook from our craft CMS it always fails immediately. This is the deploy log every time:

```
10:38:55 AM: Build ready to start
10:38:55 AM: Error enqueueing build.

```

I’m having a hard time figuring out what causes this. Any help is appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [October 7, 2020, 6:29pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/2 "2020-10-07T18:29:49Z")

</div>

hi there, is this still occurring? Are you able to deploy via another method or are all deploys failing?

if you could link us to a failed deploy that would also be helpful. thanks!

---

<div class="post-metadata">

**Author:** ![awageh](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awageh](https://answers.netlify.com/u/awageh)\
**Post date:** [October 7, 2020, 8:14pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/3 "2020-10-07T20:14:34Z")

</div>

Manual deploys and deploys triggered by branch updates work fine. Only deploys from CMS updates are giving me this error.

Here’s a link to a recent CMS update deploy: [Netlify App](https://app.netlify.com/sites/prideam/deploys/5f7e209fb441e60cbfc3acf2)

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [October 7, 2020, 8:16pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/4 "2020-10-07T20:16:28Z")

</div>

wow, that is a very helpful error message on our part 😑 /s

I’ll see who I can go ask questions about this. i will probably need to go talk to the backend team, so it may be a few days, but i’ll keep you posted.

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [October 7, 2020, 8:19pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/5 "2020-10-07T20:19:31Z")

</div>

can you share your build settings and tell me a little more about which CMS you are using?

---

<div class="post-metadata">

**Author:** ![awageh](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awageh](https://answers.netlify.com/u/awageh)\
**Post date:** [October 7, 2020, 8:57pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/6 "2020-10-07T20:57:22Z")

</div>

We’re using craft cms with the webhook plugin. Strange thing is we’ve used it successfully on another Netlify project before, and the webhook even worked on this one successfully until recently.

For our build settings we only have one build hook which craft is using. We also have a deploy context for one of our branches which is working fine. Besides those and a few environment variables everything is standard. Our build command is also the standard “gatsby build”

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [October 7, 2020, 8:58pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/7 "2020-10-07T20:58:28Z")

</div>

can you share your package.json please?

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [October 7, 2020, 9:01pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/8 "2020-10-07T21:01:14Z")

</div>

and, just to be sure, you tried “clear cache and redeploy” after updating your dependencies?

---

<div class="post-metadata">

**Author:** ![awageh](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awageh](https://answers.netlify.com/u/awageh)\
**Post date:** [October 7, 2020, 9:02pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/9 "2020-10-07T21:02:23Z")

</div>

```
{
  "name": "gatsby-starter-default",
  "private": true,
  "description": "A simple starter to get up and developing quickly with Gatsby",
  "version": "0.1.0",
  "author": "Kyle Mathews <mathews.kyle@gmail.com>",
  "dependencies": {
    "algoliasearch": "^4.2.0",
    "bootstrap": "^4.5.0",
    "bootstrap-breakpoints": "^1.0.0",
    "env-cmd": "^10.1.0",
    "gatsby": "^2.23.11",
    "gatsby-background-image": "^1.1.1",
    "gatsby-image": "^2.4.4",
    "gatsby-plugin-algolia": "^0.11.1",
    "gatsby-plugin-bugherd": "^1.0.2",
    "gatsby-plugin-google-analytics": "^2.3.14",
    "gatsby-plugin-mailchimp": "^5.2.2",
    "gatsby-plugin-manifest": "^2.4.5",
    "gatsby-plugin-offline": "^3.2.3",
    "gatsby-plugin-react-helmet": "^3.3.1",
    "gatsby-plugin-remote-images": "^2.1.0",
    "gatsby-plugin-sass": "^2.3.2",
    "gatsby-plugin-sharp": "^2.6.4",
    "gatsby-source-filesystem": "^2.3.4",
    "gatsby-source-graphql": "^2.5.2",
    "gatsby-transformer-sharp": "^2.5.2",
    "node-sass": "^4.14.1",
    "prop-types": "^15.7.2",
    "react": "^16.12.0",
    "react-animation-components": "^3.0.0",
    "react-bootstrap": "^1.0.1",
    "react-dom": "^16.12.0",
    "react-helmet": "^6.0.0",
    "react-instantsearch-dom": "^6.5.0",
    "react-reveal": "^1.2.2",
    "react-scrollmagic": "^2.2.0",
    "react-share": "^4.2.0",
    "react-text-fun": "^1.0.0",
    "react-ticker": "^1.2.2",
    "react-timeout": "^1.2.0",
    "react-transition-group": "^4.4.1",
    "striptags": "^3.1.1",
    "styled-components": "^5.1.1",
    "three": "^0.118.3"
  },
  "devDependencies": {
    "prettier": "2.0.5"
  },
  "keywords": [
    "gatsby"
  ],
  "license": "MIT",
  "scripts": {
    "build": "gatsby build",
    "netlify": "GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --log-pages",
    "algolia": "env-cmd -f .env gatsby build",
    "develop": "env-cmd -f .env gatsby develop",
    "format": "prettier --write \"**/*.{js,jsx,json,md}\"",
    "start": "npm run develop",
    "serve": "gatsby serve",
    "clean": "gatsby clean",
    "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/gatsbyjs/gatsby-starter-default"
  },
  "bugs": {
    "url": "https://github.com/gatsbyjs/gatsby/issues"
  }
}
```

---

<div class="post-metadata">

**Author:** ![awageh](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awageh](https://answers.netlify.com/u/awageh)\
**Post date:** [October 7, 2020, 9:02pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/10 "2020-10-07T21:02:55Z")

</div>

Yep! I’ve tried clearing the cache several times.

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [October 8, 2020, 7:16am UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/12 "2020-10-08T07:16:20Z")

</div>

Hi, @awageh. The size of the payload the webhook is sending is the root cause. This is the error from our backend systems:

```nohighlight
Error enqueueing build. Build payload exceeded limit of 140 KB. Please make sure environment variables and/or webhook body don't exceed this size.

```

As this only happens for the webhook, I would recommend checking there to see how big the size of the request body is and working to keep it under the limit. Note, the limit is the combination of the environment variables and the webhook body so the full 140 KB may not be available for the webhook.

​Please let us know if there are other questions about this.

---

<div class="post-metadata">

**Author:** ![awageh](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awageh](https://answers.netlify.com/u/awageh)\
**Post date:** [October 8, 2020, 2:18pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/13 "2020-10-08T14:18:41Z")

</div>

Thank you! Enabling the “Send a custom payload” in the craft webhook plugin solved this issue for us.

---

<div class="post-metadata">

**Author:** ![Matt1](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/matt1/32/9188_2.png) [@Matt1](https://answers.netlify.com/u/Matt1)\
**Post date:** [July 16, 2021, 10:48am UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/14 "2021-07-16T10:48:39Z")

</div>

I am getting this same error (“Error enqueueing build.”) whenever I send a post request from [builder.io](http://builder.io) CMS to the Netlify-provided Build Hook. I’m assuming that is because the size of the payload the webhook is sending from [builder.io](http://builder.io) is above 140kb.

What’s strange though is that after the failed post request via the webhook occurs, when I click “Trigger deploy” & “Deploy site” from within Netlify, it deplys fine, with the changes made on the [builder.io](http://builder.io) CMS incorporated without a problem.

Is there a way that I can avoid this error? Should I change any configurations in my Netlify Site Settings? Thanks!

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 16, 2021, 12:36pm UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/15 "2021-07-16T12:36:38Z")

</div>

Hi @Matt1,

As @luke mentioned above, you’d have to keep your payload within that size, there is probably no other way.

I assume it deploys fine later because it fetches the data from CMS which is not limited by payload size.

---

<div class="post-metadata">

**Author:** ![Matt1](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/matt1/32/9188_2.png) [@Matt1](https://answers.netlify.com/u/Matt1)\
**Post date:** [July 17, 2021, 4:12am UTC](https://answers.netlify.com/t/error-enqueueing-build/23922/16 "2021-07-17T04:12:05Z")

</div>

I’ll talk with [builder.io](http://builder.io) and see if they can do anything about that. Thanks.
