github / maven-plugins

Official GitHub Maven Plugins
MIT License
584 stars 198 forks source link

too many API POST requests per second #88

Open yegor256 opened 9 years ago

yegor256 commented 9 years ago

I have many files in my site and during deployment the plugin is making too many API POST requests per minute. That's why I'm getting this message from Github sometimes:

You have triggered an abuse detection mechanism and have been temporarily blocked from calling the API. Please retry your request again later

Github support team says that they will block me if I make more than 300 requests per minute (approximately). Would be great to slow down the plugin and control that it doesn't make more than 300 per min.

bguerin commented 9 years ago

+1

jinahya commented 9 years ago

I'm getting the exactly same problem from a few days ago.

debovema commented 9 years ago

+1 The same happens to me recently.

awoods commented 9 years ago

+1 same here.

bguerin commented 9 years ago

duplicate of #17

crossi202 commented 9 years ago

I'm facing the same issue:

Error creating blob: You have triggered an abuse detection mechanism and have been temporarily blocked from calling the API. Please retry your request again later. (403)

It worked previously.

I'm using this configuration, if it can help:

<plugin>
  <groupId>com.github.github</groupId>
  <artifactId>site-maven-plugin</artifactId>
  <version>0.10</version>
  <configuration>
    <message>Creating site for ${project.version}</message>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>site</goal>
      </goals>
      <phase>site-deploy</phase>
      <configuration>
        <outputDirectory>${basedir}/_build/html</outputDirectory>
      </configuration>
    </execution>
  </executions>
</plugin>
awoods commented 9 years ago

It takes longer, but I was able to address the issue I was experiencing:

Error creating blob: You have triggered an abuse detection mechanism and have been temporarily blocked from calling the API. Please retry your request again later. (403)

With the following update: https://github.com/awoods/maven-plugins/commit/c62c7b168375e3bfaf0dec7de2fa5fc03d8ed173

jasonrudolph commented 9 years ago

The 0.12.0 release includes the fix from #90 and should resolve this issue.

/cc https://github.com/github/maven-plugins/pull/90#issuecomment-107713564