time break too short
Opened this issue · 7 comments
ripoul commented
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.
frinyvonnick commented
Thanks for report 👍 How much did you increased it ?
ripoul commented
*2 just to be sure...
frinyvonnick commented
I don't have any problem but you could let the possibility to overwrite this time ? Maybe with cli option or env variable ?
ripoul commented
This problem appears after several utilisation (50 with the same GitHub
token) . Increase the break seams to solve the problem for now. The cli or
env variable is a good idee but isn't it to specific to be set here?
ripoul commented
[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 ?
frinyvonnick commented
There is a Cannot read property 'data' of undefined
can you share the code of get.js
in a gist ?