Skip to content

cli deployment error: Unexpected end of JSON input #3253

@viktor-saranchuk

Description

@viktor-saranchuk

Cannot deploy using command sf project deploy start -m MetadataType:APIname

retrieve is working fine with no issues.

Image

sf doctor


pass - salesforcedx plugin isn’t installed
pass - you don't have any linked plugins
pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
pass - [@salesforce/plugin-trust] can ping: http://registry.npmjs.org/
pass - using latest or latest-rc CLI version
pass - can access: https://test.salesforce.com
pass - can access: https://appexchange.salesforce.com/services/data
pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
pass - [@salesforce/plugin-auth] CLI supports v2 crypto
pass - [@salesforce/plugin-auth] CLI using stable v1 crypto

Wrote doctor diagnosis to: C:\Users\SARANVI1\Projects\Alcon\1743270520443-diagnosis.json```

sf --version
```@salesforce/cli/2.81.9 win32-x64 node-v22.14.0```

sf version --verbose --json

```{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.81.9",
  "nodeVersion": "node-v22.14.0",
  "osVersion": "Windows_NT 10.0.22631",
  "rootPath": "C:\\Users\\SARANVI1\\AppData\\Local\\sf\\client\\2.81.9-b9aef0c",
  "shell": "powershell",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.26 (core)",
    "@oclif/plugin-commands 4.1.22 (core)",
    "@oclif/plugin-help 6.2.27 (core)",
    "@oclif/plugin-not-found 3.2.47 (core)",
    "@oclif/plugin-plugins 5.4.36 (core)",
    "@oclif/plugin-search 1.2.23 (core)",
    "@oclif/plugin-update 4.6.35 (core)",
    "@oclif/plugin-version 2.2.26 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.38 (core)",
    "@oclif/plugin-which 3.2.34 (core)",
    "@salesforce/cli 2.81.9 (core)",
    "apex 3.6.10 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.106 (core)",
    "data 4.0.22 (core)",
    "deploy-retrieve 3.21.0 (core)",
    "info 3.4.48 (core)",
    "limits 3.3.49 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.5.1 (core)",
    "packaging 2.11.0 (core)",
    "schema 3.3.56 (core)",
    "settings 2.4.20 (core)",
    "sobject 1.4.53 (core)",
    "telemetry 3.6.36 (core)",
    "templates 56.3.41 (core)",
    "trust 3.7.73 (core)",
    "user 3.6.13 (core)"
  ]
}```


diagnostics

Summary

Cannot deploy using salesforce cli.
The issue started yesterday. it was long chain of deployments in org (checked in deployment status),
so I cancelled mine with ctrl + C,
after that I got the issue.

Steps To Reproduce

Expected result

Actual result

Additional information

Image

System Information

powershell, git bash

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.81.9",
  "nodeVersion": "node-v22.14.0",
  "osVersion": "Windows_NT 10.0.22631",
  "rootPath": "C:\\Users\\SARANVI1\\AppData\\Local\\sf\\client\\2.81.9-b9aef0c",
  "shell": "powershell",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.26 (core)",
    "@oclif/plugin-commands 4.1.22 (core)",
    "@oclif/plugin-help 6.2.27 (core)",
    "@oclif/plugin-not-found 3.2.47 (core)",
    "@oclif/plugin-plugins 5.4.36 (core)",
    "@oclif/plugin-search 1.2.23 (core)",
    "@oclif/plugin-update 4.6.35 (core)",
    "@oclif/plugin-version 2.2.26 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.38 (core)",
    "@oclif/plugin-which 3.2.34 (core)",
    "@salesforce/cli 2.81.9 (core)",
    "apex 3.6.10 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.106 (core)",
    "data 4.0.22 (core)",
    "deploy-retrieve 3.21.0 (core)",
    "info 3.4.48 (core)",
    "limits 3.3.49 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.5.1 (core)",
    "packaging 2.11.0 (core)",
    "schema 3.3.56 (core)",
    "settings 2.4.20 (core)",
    "sobject 1.4.53 (core)",
    "telemetry 3.6.36 (core)",
    "templates 56.3.41 (core)",
    "trust 3.7.73 (core)",
    "user 3.6.13 (core)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions