FrancesCoronel / apprenticeships

Dev & design apprenticeships to the rescue! 🔧
https://apprenticeships.me
MIT License
279 stars 69 forks source link

Bug: API rate limit for GitHub contributors #43

Closed FrancesCoronel closed 5 years ago

FrancesCoronel commented 5 years ago

Describe the bug

{
  "message": "API rate limit exceeded for {MY IP}. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
  "documentation_url": "https://developer.github.com/v3/#rate-limiting"
}

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://apprenticeships.me/ a crap ton
  2. Contributors from GitHub don't show up

Expected behavior

Auth for API so there's never any rate limit reached

Screenshots

screen shot 2019-01-14 at 4 00 26 pm

Additional Context

https://developer.github.com/v3/#rate-limiting

benjaminmodayil commented 5 years ago

Yeah I ran into this locally when initially working on the Github portion. Is there a way for Hugo to fetch API data and build items statically?

I know in GatsbyJS (another static site generator) you can hit and pull data from an API during the build process, but I wasn't sure if Hugo could as well. This could be another route to avoid multiple requests if we fetch the data we need and build it statically. It probably would be easier to do Auth though... albeit probably more fun doing it with Hugo if possible 😄

FrancesCoronel commented 5 years ago

@benjaminmodayil Apologies for the delay here, I'm not entirely sure but some sleuthing into Hugo's docs would probably be better. Gatsby is much newer than Hugo and has a smaller community so I'd reckon Hugo can do this as well.

benjaminmodayil commented 5 years ago

@fvcproductions I'll look into this. I always thought Hugo had a smaller community than Gatsby, haha. But I guess that's just because I use Gatsby a lot...