'Unable to clone Git repo: Invalid file descriptor

I'm trying to clone a Git repository. At work we're making use of a proxy with authentication.

The commands I execute to set up the proxy settings:

git config --global http.proxy http://username:[email protected]:port-number
git config --global https.proxy http://username:[email protected]:port-number

But this won't help since I'm getting the error: Unable to access 'https://github.com/...': Invalid file descriptor

When I change the proxy settings so that I don't have to use my authentication It works.. Like:

git config --global http.proxy http://proxy-link.nl:other-port-number
git config --global https.proxy http://proxy-link.nl:other-port-number

Anybody knows how to use the proxy with the authentication?



Solution 1:[1]

I fixed it by the way a month ago by adding the proxyAuthMethod like below:

git config --global http.proxyAuthMethod 'basic' and git config --global https.proxyAuthMethod 'basic'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lucas Scheepers