+ Start a Discussion
Roy SouravRoy Sourav 

VS Code error while opening default scratch org

When I am trying to open default scratch org from VS Code terminal. I am getting below error. Can some assist on this.

C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\kit\lib\json.js:27
        throw errors_1.JsonParseError.create(error, data, jsonPath);
        ^
JsonParseError: Unexpected end of JSON input
    at Function.create (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\kit\lib\errors.js:49:20)
    at Object.parseJson (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\kit\lib\json.js:27:39)
    at args.map.arg (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:548:53)
    at Array.map (<anonymous>)
    at _filter (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:500:17)
    at Logger.addFilter.args (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:96:37)
    at bunyan.filters.forEach (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:456:61)
    at Array.forEach (<anonymous>)
    at Logger.applyFilters (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:456:33)
    at Logger.fatal (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:450:32)
    at EventEmitter.Logger.uncaughtExceptionHandler (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:72:18)
    at EventEmitter.emit (events.js:194:15)
    at process.Logger.lifecycle.process.on.err (C:\Program Files\Salesforce CLI\client\node_modules\@salesforce\core\lib\logger.js:481:51)
    at process.emit (events.js:189:13)
    at process._fatalException (internal/bootstrap/node.js:496:27)
16:26:16.97 sfdx force:org:open ended with exit code 7

Anamika Rathore 4Anamika Rathore 4
I'm getting the sam error.
s shekar 28s shekar 28
Hi Any one solve this error? i am also getting the same error and not able to resolve it,let me know if you have come out of this?