cli: Build is already done 422

Describe the bug After successfully running netlify build, we attempt to run netlify deploy. It returns “Build is already done 422”

A clear and concise description of what the bug is. Deploy error.

To Reproduce

Steps to reproduce the behavior:

Create a new nuxtjs project or clone our test project

  1. Run git clone https://github.com/soongsta/zzz
  2. Navigate to the cloned repository
  3. install packages with npm install
  4. Run netlify build
  5. Create a new site on netlify using project
  6. link by running `netlify link’
  7. Run netlify deploy -p (even without -p, the error occurs)

Error displays

Deploy path: C:\dev\delme\00testapp\dist Deploying to main site URL… √ Finished hashing 11 files | CDN diffing files… » Warning: JSONHTTPError: Build is already done 422 » Warning: » { » “name”: “JSONHTTPError”, » “status”: 422, » “json”: { » “code”: 422, » “message”: “Build is already done” » } » } » / CDN diffing files…JSONHTTPError: Unprocessable Entity at parseResponse (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/netlify/src/methods/response.js:12:11) at async callMethod (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/netlify/src/methods/index.js:36:26) at async module.exports (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/netlify/src/deploy/index.js:92:14) at async NetlifyAPI.deploy (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/netlify/src/index.js:93:12) at async runDeploy (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/src/commands/deploy.js:222:15) at async DeployCommand.run (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/src/commands/deploy.js:422:21) at async DeployCommand._run (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/command/lib/command.js:43:20) at async Config.runCommand (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/config/lib/config.js:172:9) at async Main.run (C:/Users/team/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/command/lib/main.js:22:9)

Configuration:

System: OS: Windows 10 10.0.19041 CPU: (8) x64 Intel® Core™ i7-4790 CPU @ 3.60GHz
Memory: 16.09 GB / 31.84 GB Binaries: Node: 12.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD Expected behavior

A clear and concise description of what you expected to happen.

Project deploys.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 20 (5 by maintainers)

Most upvoted comments

Similar 422 error but with message Deploy assets are missing. To deploy successfully, ensure files are present.

Deploy path:        /Users/dw/Vendia/site/out
Configuration path: /Users/dw/Vendia/site/netlify.toml
Deploying to draft URL...
Warning: JSONHTTPError: Deploy assets are missing. To deploy successfully, ensure files are present. 422
    at Object.warn (/Users/dw/Vendia/site/node_modules/@oclif/errors/lib/index.js:33:15)
    at warn (/Users/dw/Vendia/site/node_modules/@oclif/command/lib/command.js:57:16)
    at runDeploy (/Users/dw/Vendia/site/node_modules/netlify-cli/src/commands/deploy.js:238:9)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
Warning:
{
  "name": "JSONHTTPError",
  "status": 422,
  "json": {
    "code": 422,
    "message": "Deploy assets are missing. To deploy successfully, ensure files are present."
  }
}

The static assets exist in /Users/dw/Vendia/site/out for some reason the deploy is failing though.

API troubles upstream?

Is this being treated as an incident? This seems like hard fail on deploys: https://www.netlifystatus.com/ Confirming we are on 2.68.0 and having the same problem. 😕