{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3466","repository_url":"https://api.github.com/repos/mozilla/fxa-content-server","labels_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3466/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3466/comments","events_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3466/events","html_url":"https://github.com/mozilla/fxa-content-server/issues/3466","id":130881955,"number":3466,"title":"Reported error: accountData cannot be set on an Account","user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/fxa-content-server/labels/waffle:review","name":"waffle:review","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"shane-tomlinson","id":848085,"avatar_url":"https://avatars.githubusercontent.com/u/848085?v=3","gravatar_id":"","url":"https://api.github.com/users/shane-tomlinson","html_url":"https://github.com/shane-tomlinson","followers_url":"https://api.github.com/users/shane-tomlinson/followers","following_url":"https://api.github.com/users/shane-tomlinson/following{/other_user}","gists_url":"https://api.github.com/users/shane-tomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/shane-tomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shane-tomlinson/subscriptions","organizations_url":"https://api.github.com/users/shane-tomlinson/orgs","repos_url":"https://api.github.com/users/shane-tomlinson/repos","events_url":"https://api.github.com/users/shane-tomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/shane-tomlinson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/milestones/64","html_url":"https://github.com/mozilla/fxa-content-server/milestones/FxA-0:%20quality","labels_url":"https://api.github.com/repos/mozilla/fxa-content-server/milestones/64/labels","id":1265659,"number":64,"title":"FxA-0: quality","description":"An ongoing milestone into which we can schedule maintenance tasks, tech-debt paydown, and other code-quality-related issues.","creator":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":156,"state":"open","created_at":"2015-08-21T02:49:53Z","updated_at":"2016-02-29T20:30:02Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-02-03T01:37:14Z","updated_at":"2016-03-02T10:02:57Z","closed_at":null,"body":"See report here: https://sentry.prod.mozaws.net/operations/fxa-content-product/group/223558/events/5923791/\r\n\r\n```\r\n/scripts/main.js  ? in s<.set< at line 32:19954\r\n/scripts/main.js  ? in D at line 13:12921\r\n/scripts/main.js  ? in s.partial/c at line 13:13444\r\n/scripts/main.js  ? in b.Model at line 16:31774\r\n/scripts/main.js  ? in J/d< at line 17:15787\r\n/scripts/main.js  ? in l<.initAccount at line 32:22921\r\n/scripts/main.js  ? in l<.getSignedInAccount at line 32:23293\r\n/scripts/main.js  ? in l<.upgradeFromSession/< at line 32:25011\r\n/scripts/main.js  ? in F at line 17:23170\r\n/scripts/main.js  ? in E at line 17:23124\r\n/scripts/main.js  ? in l at line 17:21172\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/128755/12770228/bdd1e524-c9ec-11e5-86a3-df8109e24022.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/comments/191166712","html_url":"https://github.com/mozilla/fxa-content-server/issues/3466#issuecomment-191166712","issue_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3466","id":191166712,"user":{"login":"shane-tomlinson","id":848085,"avatar_url":"https://avatars.githubusercontent.com/u/848085?v=3","gravatar_id":"","url":"https://api.github.com/users/shane-tomlinson","html_url":"https://github.com/shane-tomlinson","followers_url":"https://api.github.com/users/shane-tomlinson/followers","following_url":"https://api.github.com/users/shane-tomlinson/following{/other_user}","gists_url":"https://api.github.com/users/shane-tomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/shane-tomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shane-tomlinson/subscriptions","organizations_url":"https://api.github.com/users/shane-tomlinson/orgs","repos_url":"https://api.github.com/users/shane-tomlinson/repos","events_url":"https://api.github.com/users/shane-tomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/shane-tomlinson/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T10:02:57Z","updated_at":"2016-03-02T10:02:57Z","body":"Digging a bit more, this problem manifests if a user signed/in before #1900 was merged. #1900 fixes #1975 (account.toJSON polutes localStorage with extra properties). If no actions were taken that caused the account to be updated in localStorage, then the data was kept around. If an action was taken that caused the account to be updated in localStorage, the extra data was removed. Post #3376, if the extra fields were read from localStorage and then an Account was created with that data, the `accountData cannot be set on an Account` error was thrown."}}