Problems with triggering pull mirroring proces from API

Hi there,

I’m having some trouble with triggering a mirror pull using the gitlab API. The idea is to let Bitbucket call a webhook to notify gitlab when to mirror the repo. I’ve been following this resource:

Unfortunately, I’m not able to proceed because of the following error I received from the API.

{ "message": "The project is not mirrored" }

I’ve set up a bitbucket webhook on push like this: using POST

The docs are unclear on how to deal with api errors related to the /projects/xxxxxx/mirror/pull endpoint. Here is the link to the docs.

Right now I have no idea how to continue or solve this error. I’ve scoured all the docs, used advanced search to look for that error message but I haven’t found any resource or others struggling with the same problem.

I’ve also looked through all of the settings in gitlab to see if I missed any configuration.

Could anyone help me in the right direction?

I’m having the same issue and the process to mirror the repo using the API is really unclear. Were you able to solve your problem?