Closed li-boxuan closed 6 years ago
Hey @li-boxuan, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.
Sometimes I encounter the issue (node:1599) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'line' of undefined
. See https://app.netlify.com/sites/gci-leaders/deploys/5bd2b2ddb13fb157f7a0a066
Probably an upstream bug with graphql-client
. Retry sometimes solves the problem.
UPDATE:
So from my experiment and observation, it is a bug with upstream project graphql-client
.
can lead to an error when elements in errors
array don't have locations
field.
However, GitHub is supposed to include the locations
field when returning errors
.
For example, a normal errors
should be sth like this:
[{"message":"Could not resolve to an Organization with the login of 'GCI-AOSSIE'.","type":"NOT_FOUND","path":["organization"],"locations":[{"line":2,"column":3}]}]
However, sometimes GitHub returns this:
[{"message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `E689:1AF6:67E816:BAAF4C:5BD321E1` when reporting this issue."}]
which causes the error of graphql-client
.
CONCLUSION: a bug of upstream project graphql-client
. It only happens occasionally, coz it's caused due to some unknown error of GitHub.
UPDATE 2:
Created an issue https://github.com/coala/gci-leaders/issues/163
@andrewda Yep, this is to be merged after #157.
@li-boxuan , can you add a commit to fix the year. We gotta get this up . Can't wait any longer.
@jayvdb Done. Without moban
it is difficult to make the year in static files dynamic.
Hey, @li-boxuan, I've made it dynamic. Please check: https://github.com/coala/gci-leaders/pull/157 CC: @andrewda @jayvdb
@utkarsh2102 Thanks. I've rebased this PR on top of yours.
@gitmate-bot ff
scrape.js: Check if property repositories exists Fixes https://github.com/coala/gci-leaders/issues/160 pre2017.js: Fix wikipedia scraping Fixes https://github.com/coala/gci-leaders/issues/162 scrape.js: Catch exception for GitHub GraphQL Fixes https://github.com/coala/gci-leaders/issues/163