I try create new git projects with files from the existing project: https://docs.gitlab.com/ee/api/projects.html#create-project
curl --request POST --header "PRIVATE-TOKEN: <your-token>" \
--header "Content-Type: application/json" --data '{
"name": "new_project", "description": "New Project", "path": "new_project",
"import_url": "https://user:token@gitlab.com/<path>.git",
"namespace_id": "42", "initialize_with_readme": "false"}' \
--url 'https://gitlab.example.com/api/v4/projects/'
But I got the error:
{"message":"https://user:token@gitlab.com/<path>.git is not a valid HTTP Git repository"}
I was found the issue https://gitlab.com/gitlab-org/gitlab/-/issues/360266 with same error, but I set "initialize_with_readme": "false"
Gitlab version is 14.9.2
Also I tried use a broken url as import_url and got this error too
