githubvisual-studio-code

Why I'm getting Error: connect ENOENT from vscode on git push origin


I'm getting an error when trying to push to github from vscode terminal.

    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1134:16) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'connect',
  address: '/run/user/1000/snap.code/vscode-git-0e219c7318.sock'
}
Missing or invalid credentials.
Error: connect ENOENT /run/user/1000/snap.code/vscode-git-0e219c7318.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1134:16) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'connect',
  address: '/run/user/1000/snap.code/vscode-git-0e219c7318.sock'
} ``` 
This is only happening in vscode terminal cause if I use a different one I dont have this, any solution for this?

Solution

  • I had exact same problem its connection problem of VS Code restart VS code it will work fine