{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/testpilot/issues/1075","repository_url":"https://api.github.com/repos/mozilla/testpilot","labels_url":"https://api.github.com/repos/mozilla/testpilot/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/testpilot/issues/1075/comments","events_url":"https://api.github.com/repos/mozilla/testpilot/issues/1075/events","html_url":"https://github.com/mozilla/testpilot/issues/1075","id":165867369,"number":1075,"title":"\"Installing...\" keeps spinning after add-on installation attempt","user":{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false},"assignees":[{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-07-15T20:07:07Z","updated_at":"2016-07-15T20:39:35Z","closed_at":"2016-07-15T20:36:37Z","body":"Occasionally on a fresh Firefox profile, I try to install the add-on but the \"Installing...\" barberpole never stops spinning. \r\n\r\nThere will be an error in the Web Console like \"Uncaught promise rejection: waitForMessage timed out\". Having trouble reproducing this to capture the exact error message. \r\n\r\n[waitForMessage is here](https://github.com/mozilla/testpilot/blob/master/testpilot/frontend/static-src/app/main.js#L68) and it has a timeout for when the add-on takes too long to respond. It [gets called here in the frontend](https://github.com/mozilla/testpilot/blob/master/testpilot/frontend/static-src/app/models/me.js#L41) after the install button [detects that the add-on has been installed](https://github.com/mozilla/testpilot/blob/master/testpilot/frontend/static-src/app/views/landing-page.js#L55).\r\n\r\nMy guess is that between installation and when the add-on finally starts responding to messages, there's a gap of sometimes more than 5 seconds and that's why the error happens. Still investigating, though.\r\n\r\nEvery time this has happened to me, a page refresh seems to fix everything and the add-on is actually working."},"comment":{"url":"https://api.github.com/repos/mozilla/testpilot/issues/comments/233064124","html_url":"https://github.com/mozilla/testpilot/issues/1075#issuecomment-233064124","issue_url":"https://api.github.com/repos/mozilla/testpilot/issues/1075","id":233064124,"user":{"login":"johngruen","id":3323249,"avatar_url":"https://avatars.githubusercontent.com/u/3323249?v=3","gravatar_id":"","url":"https://api.github.com/users/johngruen","html_url":"https://github.com/johngruen","followers_url":"https://api.github.com/users/johngruen/followers","following_url":"https://api.github.com/users/johngruen/following{/other_user}","gists_url":"https://api.github.com/users/johngruen/gists{/gist_id}","starred_url":"https://api.github.com/users/johngruen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngruen/subscriptions","organizations_url":"https://api.github.com/users/johngruen/orgs","repos_url":"https://api.github.com/users/johngruen/repos","events_url":"https://api.github.com/users/johngruen/events{/privacy}","received_events_url":"https://api.github.com/users/johngruen/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T20:39:35Z","updated_at":"2016-07-15T20:39:35Z","body":"Possibly related. If i uninstall the add-on on my local build (near master in every possibly significant way) the first time i click to reinstall it hangs but the second time i click to reinstall it works (even w/o page refresh)\r\n\r\nError msg: \r\n\r\n```\r\nA promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?\r\nSee https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise\r\n\r\nDate: Fri Jul 15 2016 16:37:27 GMT-0400 (EDT)\r\nFull Message: TypeError: this._addon is null\r\nFull Stack: BrowserAddonActor.prototype.id@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/addon.js:50:5\r\nDSC_setAddonOptions/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1556:1\r\nHandler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23\r\nthis.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7\r\nthis.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:750:11\r\n```"}}
{"actor":{"display_login":"johngruen"}}