Packagemanager cannot add the package by git url

Public and Private keys are added and regular git operations seem to be working fine. It seems that unity is somehow not aware of my credentials or something like that. I get the following error every time I tried.

Cannot perform upm operation: Unable to add package [The most-comprehensive AI-powered DevSecOps platform | GitLab]:
Error when executing git command. remote: HTTP Basic: Access denied
fatal: Authentication failed for ‘The most-comprehensive AI-powered DevSecOps platform | GitLab
[NotFound]
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Having the same issue.

The Unity manual for git dependencies has some pointers for authentication.

Note that it’s a HTTP Basic authentication error, which uses login/password and not your SSH keys. Did you add your git dependency using the git or http url? If you want to use SSH keys, you need to use the git url.

If you want to use the HTTP git url, you need to authenticate with a git credentials helper, Unity cannot ask you for your login/password interactively.

If you’re already using the git url, LFS can still try to connect using HTTP. Check the documentation above for how to tell Unity the LFS url to use.

1 Like