You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SyntaxError: Unexpected token < in JSON at position 1 when I run sfdx force:source:deploy -p force-app #872
$ sfdx force:source:deploy -p force-app
*** Deploying with REST ***
SyntaxError: Unexpected token < in JSON at position 1
at JSON.parse ()
at Request._callback (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\salesforce-alm\dist\lib\core\force.js:583:25)
at Request.self.callback (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\request\request.js:185:22)
at Request.emit (events.js:315:20)
at Request. (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\request\request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage. (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
SyntaxError: Unexpected token < in JSON at position 1
at JSON.parse ()
at Request._callback (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\salesforce-alm\dist\lib\core\force.js:583:25)
at Request.self.callback (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\request\request.js:185:22)
at Request.emit (events.js:315:20)
at Request. (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\request\request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage. (C:\Users\Bohdan\AppData\Local\sfdx\client\7.88.4-3b2e55c3f1\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Please see #860, which has much more info about this issue. Essentially, this is the switch to the REST API. The workaround is to switch to SOAP. A fix in the latest-rc tag (of sfdx-cli or salesforcedx) allows you to switch to SOAP via the restDeploy SFDX config variable, which is also available as an environment variable.
Activity
Patlatus commentedon Feb 24, 2021
was able to resolve by uninstalling completely and reinstalling
CXCAlfo commentedon Feb 25, 2021
Hi. @Patlatus when you say uninstalling completely - do you mean CLI SFDX?
This just happened after i upgraded to sfdx-cli/7.88.4-3b2e55c3f1
AllanOricil commentedon Feb 25, 2021
related #884
AllanOricil commentedon Feb 25, 2021
related #860
Patlatus commentedon Feb 26, 2021
@CXCAlfo Yes, I mean I have uninstalled SFDX CLI completely and reinstalling it again
shetzel commentedon Mar 2, 2021
Please see #860, which has much more info about this issue. Essentially, this is the switch to the REST API. The workaround is to switch to SOAP. A fix in the latest-rc tag (of sfdx-cli or salesforcedx) allows you to switch to SOAP via the
restDeploySFDX config variable, which is also available as an environment variable.