Uploaded image for project: 'Red Hat Developer Website'
  1. Red Hat Developer Website
  2. DEVELOPER-1203

Google Books API requests don't cache in development profile

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug 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"
      

        1. cache.db
          7.05 MB
          Paul Robinson
        2. cache.store
          24 kB
          Paul Robinson
        3. faraday.log
          652 kB
          Paul Robinson

            jporter@redhat.com Jason Porter
            paul.robinson@redhat.com Paul Robinson
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: