Getting error remote: GitLab: API is not accessible

Hello,

While pushing code on the gitlab getting error.

remote: GitLab: API is not accessible pre-receive hook declined

I don’t think that has anything to do with GitLab. It just means that the pre-receive hook for the project failed.

We don’t know what the pre-receive hook for the project you’re working does, so we can’t give any specific help, but you’ll probably need to change your code.
As far as I have understood, the most common usage for pre-receive hooks are to make sure coding standards are obeyed, but good hooks say why the fail.

1 Like

Also, we need to know where the error happened @riya.patel - was it gitlab.com or your own hosted server, and which versions are involved?