SUPPORT / SAMPLES & SAS NOTES
 

Support

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”

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS ViyaMicrosoft® Windows® for x643.5Viya
Microsoft Windows 8 Enterprise 32-bit3.5Viya
Microsoft Windows 8 Enterprise x643.5Viya
Microsoft Windows 8 Pro 32-bit3.5Viya
Microsoft Windows 8 Pro x643.5Viya
Microsoft Windows 8.1 Enterprise 32-bit3.5Viya
Microsoft Windows 8.1 Enterprise x643.5Viya
Microsoft Windows 8.1 Pro 32-bit3.5Viya
Microsoft Windows 8.1 Pro x643.5Viya
Microsoft Windows 103.5Viya
Microsoft Windows 113.5Viya
Microsoft Windows 95/983.5Viya
Microsoft Windows 2000 Advanced Server3.5Viya
Microsoft Windows 2000 Datacenter Server3.5Viya
Microsoft Windows 2000 Server3.5Viya
Microsoft Windows 2000 Professional3.5Viya
Microsoft Windows NT Workstation3.5Viya
Microsoft Windows Server 2003 Datacenter Edition3.5Viya
Microsoft Windows Server 2003 Enterprise Edition3.5Viya
Microsoft Windows Server 2003 Standard Edition3.5Viya
Microsoft Windows Server 2003 for x643.5Viya
Microsoft Windows Server 20083.5Viya
Microsoft Windows Server 2008 R23.5Viya
Microsoft Windows Server 2008 for x643.5Viya
Microsoft Windows Server 2012 Datacenter3.5Viya
Microsoft Windows Server 2012 R2 Datacenter3.5Viya
Microsoft Windows Server 2012 R2 Std3.5Viya
Microsoft Windows Server 2012 Std3.5Viya
Microsoft Windows Server 20163.5Viya
Microsoft Windows Server 20193.5Viya
Microsoft Windows Server 20223.5Viya
Microsoft Windows XP Professional3.5Viya
Windows 7 Enterprise 32 bit3.5Viya
Windows 7 Enterprise x643.5Viya
Windows 7 Home Premium 32 bit3.5Viya
Windows 7 Home Premium x643.5Viya
Windows 7 Professional 32 bit3.5Viya
Windows 7 Professional x643.5Viya
Windows 7 Ultimate 32 bit3.5Viya
Windows 7 Ultimate x643.5Viya
Windows Millennium Edition (Me)3.5Viya
Windows Vista3.5Viya
Windows Vista for x643.5Viya
Linux for x643.5Viya
* 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.