Coder Social home page Coder Social logo

Counts not displayed anymore about github-buttons HOT 6 CLOSED

mdo avatar mdo commented on September 28, 2024
Counts not displayed anymore

from github-buttons.

Comments (6)

boronine avatar boronine commented on September 28, 2024

+1

from github-buttons.

colin4124 avatar colin4124 commented on September 28, 2024

Can you show me the code you use?

from github-buttons.

therealklanni avatar therealklanni commented on September 28, 2024

Example:

<iframe src="http://ghbtns.com/github-btn.html?user=therealklanni&repo=badger&type=fork&count=true&size=large"
  allowtransparency="true" frameborder="0" scrolling="0" width="100%" height="30"></iframe>

For me, the counts were showing up for about 15 minutes, as I was developing (refreshing the page as I preview my work), then stopped appearing, and I now only see undefined where the count should appear.

Edit: after another approximately 10-15 minutes the counts do appear again. This may be GitHub throttling the API calls. (In all I did maybe 2-3 dozen refreshes in a 30-45 minute timespan before it started displaying undefined)

from github-buttons.

thepag avatar thepag commented on September 28, 2024

Since I setup the count info on a page before finding this great project, I was able to see what the API was returning...

{
  "meta": {
    "X-RateLimit-Limit": "60",
    "X-RateLimit-Remaining": "0",
    "X-RateLimit-Reset": "1394570581",
    "X-GitHub-Media-Type": "github.beta",
    "status": 403
  },
  "data": {
    "message": "API rate limit exceeded for 123.456.789.123. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
    "documentation_url": "http://developer.github.com/v3/#rate-limiting"
  }
}

So checkout the API rate limiting documentation.

For unauthenticated requests, the rate limit allows you to make up to 60 requests per hour.

from github-buttons.

sckott avatar sckott commented on September 28, 2024

Thanks for the feedback, sorry for being awol. I haven't seen this problem on my pages in a while.

from github-buttons.

mdo avatar mdo commented on September 28, 2024

Closing for #65, which supersedes #48.

from github-buttons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.