Fatal: protocol error: bad line length character: No s

I am getting the following error when I try to clone a git repo from gitlab.com

fatal: protocol error: bad line length character: No s

Does anyone have some suggestions on how to troubleshoot this?

Is this a private repo? Can you post the link to reproduce maybe?

Yes, it was a private repo on gitlab.com.

I believe we moved it to another group, and it seemed to work fine, so I’m not sure if it was just a fluke or what.

We face this error when we have access lower than Developer. We must have access level set to at least Dev.

Is this on gitlab.com or on your hosted instance?

I got the same error “Fatal: protocol error: bad line length character: No s” when I tried to push to other user created project on our hosted instance.
The project is an internal repo and I can pull it to my client.
Then I add member in the project and set project access as Master, everything is fine.