Getting error while cloning a project in Gitlab CE using API token

I was trying to clone a project in GitLab Community Edition using API token from vscode, but it’s throwing “Fatal: Unable to access” error. I was following below syntax to clone it, it is working in Enterprise edition, but not in Community edition. Please help me !!

git clone https://{api token name}:{token id}@gitlab.com/path of project