Zenika/github-insights

time break too short

Opened this issue · 7 comments

I think this sleep is not enougth : I've got some strange random error while fetching the repositories of the organization.

By increasing the break time the error didn't show up again.

Thanks for report 👍 How much did you increased it ?

*2 just to be sure...

I don't have any problem but you could let the possibility to overwrite this time ? Maybe with cli option or env variable ?

[GraphQL error]: Message: Something went wrong while executing your query. Please include `86B2:2609:350B9C:698E28:5CA4935E` when reporting this issue., Location: undefined, Path: undefined
{ Error: GraphQL error: Something went wrong while executing your query. Please include `86B2:2609:350B9C:698E28:5CA4935E` when reporting this issue.
    at new ApolloError (/home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/apollo-client/bundle.umd.js:59:32)
    at QueryManager.<anonymous> (/home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/apollo-client/bundle.umd.js:1183:49)
    at step (/home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/tslib/tslib.js:133:27)
    at Object.next (/home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/tslib/tslib.js:114:57)
    at /home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/tslib/tslib.js:107:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/tslib/tslib.js:103:16)
    at /home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/apollo-client/bundle.umd.js:1146:87
    at /home/ripoul/Documents/epsi/cloud/project/github-insight/node_modules/apollo-client/bundle.umd.js:1626:21
    at Array.forEach (<anonymous>)
  graphQLErrors:
   [ { message:
        'Something went wrong while executing your query. Please include `86B2:2609:350B9C:698E28:5CA4935E` when reporting this issue.' } ],
  networkError: null,
  message:
   'GraphQL error: Something went wrong while executing your query. Please include `86B2:2609:350B9C:698E28:5CA4935E` when reporting this issue.',
  extraInfo: undefined }
(node:5815) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined
    at /home/ripoul/Documents/epsi/cloud/project/github-insight/get.js:243:38
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:5815) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5815) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is that possible that appolo not hundle the rate limit ?

There is a Cannot read property 'data' of undefined can you share the code of get.js in a gist ?

it's the next error created by the first one. You can find the code here.