-
Bug
-
Resolution: Done
-
None
-
None
-
None
I am getting the "An error occurred: User Rate Limit Exceeded. Please sign up" error from the Google Books API, despite having a primed cache, when building with the development profile.
This is an issue as it uses up the API quota too quickly.
To reproduce:
1) Build the site, to ensure a primed cache
2) Build the site again, using the primed cache
3) Look in the faraday.log and observe what looks to be expire headers in the past.
examples:
I, [2015-01-28T10:19:33.243442 #1706] INFO -- : get https://www.googleapis.com/discovery/v1/apis/books/v1/rest D, [2015-01-28T10:19:33.243550 #1706] DEBUG -- request: User-Agent: "JBoss Developer/1 google-api-ruby-client/0.7.1 Mac OS X/10.10.1\n (gzip)" Accept-Encoding: "gzip" Content-Type: "" I, [2015-01-28T10:19:33.243656 #1706] INFO -- Status: 200 D, [2015-01-28T10:19:33.243708 #1706] DEBUG -- response: expires: "Fri, 23 Jan 2015 11:13:57 GMT"
I, [2015-01-28T10:19:33.784409 #1706] INFO -- : get https://www.googleapis.com/books/v1/volumes?country=SG&q=isbn%3A9781783282449 D, [2015-01-28T10:19:33.784545 #1706] DEBUG -- request: User-Agent: "JBoss Developer/1 google-api-ruby-client/0.7.1 Mac OS X/10.10.1\n (gzip)" Accept-Encoding: "gzip" Content-Type: "" I, [2015-01-28T10:19:34.257571 #1706] INFO -- Status: 200 D, [2015-01-28T10:19:34.257717 #1706] DEBUG -- response: expires: "Wed, 28 Jan 2015 10:19:34 GMT"