Error 500 - Cloning from git to intellij

I am trying to clone a project and tried several times. I’ve tried doing both SSH and HTTPS. I’ve tried changing the ssh executable to native and built-in. I tried deleting my old ssh key and generating a new one again. I’ve tried uninstalling and installing intellij. Non of these methods seemed to have worked. I either get an error message of Error 500 or unable to access remote repository.