too many redirects or authentication replays

0
Hi ,I use pat to clone a project from team server in cmd. git clone https://git.mendix.com/xxxx.gitIt's ok to download the project.After some code modify, I try to commit and push my project.(using mendix commit button)This ERROR HAPPENS: It appears that you do not have access to this project.LibGit2Sharp.LibGit2SharpException: too many redirects or authentication replays at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154 at LibGit2Sharp.Core.Proxy.git_remote_fetch(RemoteHandle remote, IEnumerable`1 refSpecs, GitFetchOptions fetchOptions, String logMessage) in /_/LibGit2Sharp/Core/Proxy.cs:line 2306 at LibGit2Sharp.Commands.Fetch(Repository repository, String remote, IEnumerable`1 refspecs, FetchOptions options, String logMessage, ProxyOptions proxy) in /_/LibGit2Sharp/Commands/Fetch.cs:line 81 at LibGit2Sharp.Network.Fetch(String url, IEnumerable`1 refspecs, FetchOptions options, String logMessage, ProxyOptions proxy) in /_/LibGit2Sharp/Network.cs:line 213 at LibGit2Sharp.Network.Fetch(String url, IEnumerable`1 refspecs, FetchOptions options, ProxyOptions proxy) in /_/LibGit2Sharp/Network.cs:line 181 at Mendix.Modeler.VersionControl.Actions.Git.Requests.Fetch.GitFetchLibGitRequest.ExecuteRequest() in Mendix.Modeler.VersionControl\Actions\Git\Requests\Fetch\GitFetchLibGitRequest.cs:line 55I can still push in command line, but I can't solve conflict there. So I need to commit in studio pro.Please give me some advice.
asked
1 answers
0

Hi,

I would first verify how the repository was cloned.


For Mendix projects, I recommend cloning the project using:

git clone --branch BRANCH_NAME --single-branch https://pat:YOUR_PAT@git.api.mendix.com/APP_ID.git


Mendix Git is a little different from a standard Git repository. If the project wasn't cloned correctly (or the correct branch wasn't checked out), Studio Pro may not be able to authenticate properly, which can result in errors like "too many redirects or authentication replays" or "You do not have access to this project."


Also note that some Git operations (such as branch management) are intended to be performed through Studio Pro rather than the command line.


If you originally cloned the repository using a different URL or without specifying the branch, I'd recommend cloning it again using the command above and then opening it in Studio Pro.


Kindly mark this as the accepted answer if it helps.

answered