Problem with netlify deploy using azure devops

I’m using azure devops pipeline to deploy my website in netlify. There is a problem after installing netlify cli and trying to deploy app. I’m getting error:

Deploying to draft URL...
- Hashing files...
✔ Finished hashing 10 files
- CDN diffing files...
 ›   Warning: 
 ›   {
 ›      "message": "invalid json response body at 
 ›   deploys reason: Unexpected end of JSON input",
 ›      "type": "invalid-json"
 ›   }
FetchError: invalid json response body at**SITE_ID**/deploys reason: Unexpected end of JSON input
    at /opt/hostedtoolcache/node/10.17.0/x64/lib/node_modules/netlify-cli/node_modules/node-fetch/lib/index.js:272:32
##[error]Bash exited with code '2'.

This is the part of pipeline that is failing:

- script: |
    npm i -g netlify-cli
    netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod
  displayName: 'Deploy'

Hi, @datainvestor, it looks like the API’s response was truncated for some reason.

Does this issue only happen in the azure devops pipeline or can it be reproduced outside of this system?

If it only occurs in the azure devops pipeline, then it might help to contact their support team to ask about why the API response would only be truncated (incomplete) when the API calls comes from their system.

If the issue can be reproduced locally, would you please include the reproduction steps here?