github icon indicating copy to clipboard operation
github copied to clipboard

Uncaught error from GraphQL query - GetMentionableUsers

Open robertrossmann opened this issue 5 years ago • 2 comments

Prerequisites

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

GraphQL error

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

  1. Clone a repo from Github
  2. Open it with Atom and perhaps do some stuff with the Github package (? not sure if necessary)
  3. Remove your account from this Github repo
  4. Reload Atom
  5. 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

robertrossmann avatar Mar 15 '19 07:03 robertrossmann

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

nelson6e65 avatar Mar 30 '21 15:03 nelson6e65

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

asiloisad avatar Jan 12 '22 22:01 asiloisad