You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using graphql-client to fetch data from GitHub.
Usually, errors returned from GitHub looks 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 errors as follows:
[{"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."}]
Note that it doesn't have locations field.
Under the latter circumstance,
I am using
graphql-client
to fetch data from GitHub.Usually,
errors
returned from GitHub looks like this:However, sometimes GitHub returns
errors
as follows:Note that it doesn't have
locations
field.Under the latter circumstance,
graphql-client/index.js
Line 2 in f8d1dcb
together with
graphql-client/index.js
Line 11 in f8d1dcb
would cause an error:
cannot read property 'line' of undefined
c.f. coala/gci-leaders#161 (comment)
The text was updated successfully, but these errors were encountered: