github
github copied to clipboard
Uncaught error from GraphQL query - GetMentionableUsers
Prerequisites
- Have you tried to reproduce the problem in Safe Mode?
- Have you followed all applicable steps in the debugging guide?
- Have you checked the FAQs on the message board for common solutions?
- Have you checked that your issue isn't already filed?
Description
I left my Atom editor open for a while after reloading it (not sure how long exactly), then I opened the DevTools console and I was greeted with 2000 uncaught errors caused by a failed GraphQL query - GetMentionableUsers
. 🤷♂️
user-store.js:112 Uncaught (in promise) Error: GraphQL API endpoint at https://api.github.com/graphql returned an error for query GetMentionableUsers.
at fetchQuery (/Users/robert/repos/github/relay-network-layer-manager.js:122:17)
at <anonymous>
fetchQuery @ relay-network-layer-manager.js:122
async function (async)
loadUsers @ user-store.js:93
didUpdate @ user-store.js:69
_refreshModelData @ model-observer.js:52
async function (async)
_refreshModelData @ model-observer.js:40
refreshModelData @ model-observer.js:36
activeModelUpdateSubscription.model.onDidUpdate @ model-observer.js:24
simpleDispatch @ /Users/robert/repos/github/node_modules/event-kit/dist/emitter.js:64
emit @ /Users/robert/repos/github/node_modules/event-kit/dist/emitter.js:257
transition @ repository.js:64
transitionTo @ state.js:449
start @ loading.js:13
async function (async)
start @ loading.js:8
transition @ repository.js:67
transitionTo @ repository.js:71
Repository @ repository.js:36
WorkdirContext.repository.options.(anonymous function) @ workdir-context.js:35
WorkdirContext @ workdir-context.js:35
add @ workdir-context-pool.js:38
set @ workdir-context-pool.js:83
getNextContext @ github-package.js:521
async function (async)
getNextContext @ github-package.js:493
updateActiveContext @ github-package.js:573
execute @ async-queue.js:13
processTask @ async-queue.js:70
processQueue @ async-queue.js:55
push @ async-queue.js:44
scheduleActiveContextUpdate @ github-package.js:477
activate @ github-package.js:240
async function (async)
activate @ github-package.js:242
activateNow @ <embedded>:11
measure @ <embedded>:11
measure @ <embedded>:11
activationPromise.activationPromise.Promise @ <embedded>:11
activate @ <embedded>:11
activatePackage @ <embedded>:11
config.transactAsync @ <embedded>:11
transactAsync @ <embedded>:11
activatePackages @ <embedded>:11
activate @ <embedded>:11
t.loadState.then @ <embedded>:1
async function (async)
t.loadState.then @ <embedded>:1
Promise resolved (async)
startEditorWindow @ <embedded>:1
t.exports @ <embedded>:1
setupWindow @ index.js:106
window.onload @ index.js:67
The repository I had open was an old project I worked on and my access to that Github repository was revoked in the past. While I do not see the actual error being returned I am 99% certain it's an "unauthorized" kind of response coming from Github API.
Steps to Reproduce
- Clone a repo from Github
- Open it with Atom and perhaps do some stuff with the Github package (? not sure if necessary)
- Remove your account from this Github repo
- Reload Atom
- Observe error in the console
Expected behavior:
No errors in the console. Or, not 2000 of them 💣 .
Actual behavior:
2000 errors in the console for the same type of failure.
Reproduces how often:
I get at least one error every time for this repository. Not sure how I ended up with 2000 of them in one specific instance. Could not reproduce this error bomb behaviour. 😢
Versions
Atom : 1.36.0-beta1
Electron: 2.0.18
Chrome : 61.0.3163.100
Node : 8.9.3
Additional Information
N/A
I'm getting this error too on Windows 10.
Atom : 1.55.0
Electron: 6.1.12
Chrome : 76.0.3809.146
Node : 12.4.0
2 years after, i'm still getting this error.
Atom : 1.58.0 x64
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1