Error HTTP 508 when redeploying a project

Hello,

Can you try using this payload instead: https://vercel.com/docs/rest-api/endpoints#tag/deployments/create-a-new-deployment ?

if you want to trigger a deployment from a specific branch, you may use something like this:

{
  "name": "YourProjectNameOnVercel", 
  "gitSource": {
    "ref": "yourBranchName",
    "repoId": "gitRepositoryId",
    "sha": "COMMITSHA",
    "type": "github"
  },
  "target": "production"
}

You also should consider using the following forceNew=1 query paremeter - this forces a new deployment (re-deployment) even if there is a previous similar deployment

1 Like