ForceCLI/force

CLI: unexpected end of json input

leftpropeller opened this issue · 2 comments

No matter the command I enter in the force.com CLI on Win10, I always get an error saying "unexpected end of json input", even when just interrogating the version.

Has anyone else come across/resolved this problem?

cli

I'm able to reproduce by truncating the json file that stores the current account credentials. Can you check whether that's the problem you're running into? The credentials are stored in %HOME%/.force/accounts, %USERPROFILE%/.force/accounts or %HOMEDRIVE%/.force/accounts in windows.

@cwarden You were spot on! I do it all in the command line since I log into many orgs, but deleting %USERPROFILE%/.force solved it!

Thank you.