Follow API sometimes works and sometimes not



We have an automated script that adds projects to circleci and it sometimes fails when we run:

curl -s -X POST

But not all the time.

The error message we get is “For security purposes only a project’s Github administrator may setup Circle. …”

The script sets up the project on github using the same github user as the token on circleci.

What could we be doing wrong and how come it works some of the time?