dblock / fue

Find an e-mail addresses of Github users.
MIT License
19 stars 1 forks source link

Iterate over repositories to raise the limit over 100 enforced by Github #5

Closed yizeng closed 6 years ago

yizeng commented 6 years ago

Works fine when the depth is 100, but a GraphQL error is thrown when depth is 1000.

ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32]

depth-1000-exception

dblock commented 6 years ago

That has probably little to do with depth, but has to do with something the graphql API is returning. Likely a Graphlient bug. I'll debug, but you could help if you want and see what data it's choking on in graphql_error.rb.

dblock commented 6 years ago

Error message fixed in https://github.com/dblock/fue/commit/4a0655687ace5ff2421e3d2f921fe5105b1e85bd, already fixed in Graphlient.

With the same command you now get a better error: Requesting 1000 records on therepositoriesconnection exceeds thelastlimit of 100 records., which clarifies what's going on. I updated the README to say that the max limit is 100. We can probably paginate over repositories to increase the limit, I renamed this issue to represent what we want to do.

dblock commented 6 years ago

Closed via https://github.com/dblock/fue/commit/d848e199dcdd5df406eccf7a1ccbab3ea4f833d3