Problem Note 69557: The GIT_CLONE and GIT_FETCH functions return the error “Return code from GIT is (34). could not find appropriate mechanism for credentials”
If you attempt to clone a Git repository or retrieve changes from a remote repository by using HTTPS authentication, it returns the following error:
ERROR: Return code from GIT is (34). could not find appropriate mechanism for credentials.
This problem occurs with the Git user interface in SAS® Studio and with the GIT_CLONE and GIT_FETCH Base SAS® functions when you try to authenticate using an HTTP URL and pass empty SSH parameters to the functions.
Here is an example:
data work.clone;
rc = git_clone("<https remote url>", "<local repo path>", "<username>", "<password/pat>", "", "");
run;
Here is another example:
data work.fetch;
rc = git_fetch("<local repo path of a repo cloned using https>", "<username>", "<password/pat>", "", "", "<target branch>");
run;
To circumvent this problem, use Secure Shell (SSH) authentication to clone the Git repository.
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
Operating System and Release Information
SAS System | SAS Viya | Microsoft® Windows® for x64 | 3.5 | | Viya | |
Microsoft Windows 8 Enterprise 32-bit | 3.5 | | Viya | |
Microsoft Windows 8 Enterprise x64 | 3.5 | | Viya | |
Microsoft Windows 8 Pro 32-bit | 3.5 | | Viya | |
Microsoft Windows 8 Pro x64 | 3.5 | | Viya | |
Microsoft Windows 8.1 Enterprise 32-bit | 3.5 | | Viya | |
Microsoft Windows 8.1 Enterprise x64 | 3.5 | | Viya | |
Microsoft Windows 8.1 Pro 32-bit | 3.5 | | Viya | |
Microsoft Windows 8.1 Pro x64 | 3.5 | | Viya | |
Microsoft Windows 10 | 3.5 | | Viya | |
Microsoft Windows 11 | 3.5 | | Viya | |
Microsoft Windows 95/98 | 3.5 | | Viya | |
Microsoft Windows 2000 Advanced Server | 3.5 | | Viya | |
Microsoft Windows 2000 Datacenter Server | 3.5 | | Viya | |
Microsoft Windows 2000 Server | 3.5 | | Viya | |
Microsoft Windows 2000 Professional | 3.5 | | Viya | |
Microsoft Windows NT Workstation | 3.5 | | Viya | |
Microsoft Windows Server 2003 Datacenter Edition | 3.5 | | Viya | |
Microsoft Windows Server 2003 Enterprise Edition | 3.5 | | Viya | |
Microsoft Windows Server 2003 Standard Edition | 3.5 | | Viya | |
Microsoft Windows Server 2003 for x64 | 3.5 | | Viya | |
Microsoft Windows Server 2008 | 3.5 | | Viya | |
Microsoft Windows Server 2008 R2 | 3.5 | | Viya | |
Microsoft Windows Server 2008 for x64 | 3.5 | | Viya | |
Microsoft Windows Server 2012 Datacenter | 3.5 | | Viya | |
Microsoft Windows Server 2012 R2 Datacenter | 3.5 | | Viya | |
Microsoft Windows Server 2012 R2 Std | 3.5 | | Viya | |
Microsoft Windows Server 2012 Std | 3.5 | | Viya | |
Microsoft Windows Server 2016 | 3.5 | | Viya | |
Microsoft Windows Server 2019 | 3.5 | | Viya | |
Microsoft Windows Server 2022 | 3.5 | | Viya | |
Microsoft Windows XP Professional | 3.5 | | Viya | |
Windows 7 Enterprise 32 bit | 3.5 | | Viya | |
Windows 7 Enterprise x64 | 3.5 | | Viya | |
Windows 7 Home Premium 32 bit | 3.5 | | Viya | |
Windows 7 Home Premium x64 | 3.5 | | Viya | |
Windows 7 Professional 32 bit | 3.5 | | Viya | |
Windows 7 Professional x64 | 3.5 | | Viya | |
Windows 7 Ultimate 32 bit | 3.5 | | Viya | |
Windows 7 Ultimate x64 | 3.5 | | Viya | |
Windows Millennium Edition (Me) | 3.5 | | Viya | |
Windows Vista | 3.5 | | Viya | |
Windows Vista for x64 | 3.5 | | Viya | |
Linux for x64 | 3.5 | | Viya | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
GIT_CLONE and GIT_FETCH functions return ERROR: Return code from GIT is (34). could not find appropriate mechanism for credentials occurs with HTTPS authentication.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2022-11-18 11:06:55 |
Date Created: | 2022-09-19 09:00:08 |