Giter Site home page Giter Site logo

Comments (2)

ericboucher avatar ericboucher commented on July 20, 2024

I was able to reproduce the server error on issue/comments directly with:

https://api.github.com/repos/hashicorp/terraform-provider-aws/issues/comments?sort=updated&direction=asc&since=2020-06-22T11:30&per_page=100

The problem I think is that the since parameter is too expensive for large repos. I see two primary options:

  1. Act as if the since parameter does not work and paginate in descending order with an early stop instead
  2. Try to use a graphql request instead

@laurentS wdyt?

from tap-github.

laurentS avatar laurentS commented on July 20, 2024

The problem I think is that the since parameter is too expensive for large repos. I see two primary options:

1. Act as if the since parameter does not work and paginate in descending order with an early stop instead

2. Try to use a graphql request instead

Option 3. Switch to a different REST endpoint that lists comments for a single issue, as opposed to the entire repo. This would be more "quota hungry" on the core quota, so graphql is likely a better option there, if it works.

I'd try whichever is the least work between the 2 options you suggest, and see if it works. This is not properly documented on their side, so short of trying, we probably won't know.

from tap-github.

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.