Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?
like image 319
pstin Avatar asked Nov 18 '25 17:11

pstin


1 Answers

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

like image 182
Manish Avatar answered Nov 21 '25 06:11

Manish