{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-iot/gateway/issues/2289","repository_url":"https://api.github.com/repos/mozilla-iot/gateway","labels_url":"https://api.github.com/repos/mozilla-iot/gateway/issues/2289/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-iot/gateway/issues/2289/comments","events_url":"https://api.github.com/repos/mozilla-iot/gateway/issues/2289/events","html_url":"https://github.com/mozilla-iot/gateway/issues/2289","id":523710283,"node_id":"MDU6SXNzdWU1MjM3MTAyODM=","number":2289,"title":"After update to 0.10.0, my phone's browser is getting a blank add-ons pane, due to using old/stale JS & CSS URIs (?)","user":{"login":"dholbert","id":426803,"node_id":"MDQ6VXNlcjQyNjgwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/426803?v=4","gravatar_id":"","url":"https://api.github.com/users/dholbert","html_url":"https://github.com/dholbert","followers_url":"https://api.github.com/users/dholbert/followers","following_url":"https://api.github.com/users/dholbert/following{/other_user}","gists_url":"https://api.github.com/users/dholbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dholbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dholbert/subscriptions","organizations_url":"https://api.github.com/users/dholbert/orgs","repos_url":"https://api.github.com/users/dholbert/repos","events_url":"https://api.github.com/users/dholbert/events{/privacy}","received_events_url":"https://api.github.com/users/dholbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-11-15T22:01:23Z","updated_at":"2019-11-18T16:17:16Z","closed_at":null,"author_association":"NONE","body":"Ever since receiving the 0.10.0 gateway update yesterday (I think), my phone's view of my Gateway web-interface has been unable to list any add-ons. The add-ons list just shows up as blank, and so does its \"+\" view (to discover new add-ons) -- they both incorrectly behave as if no add-ons exist or are available at all.\r\n\r\nI think this is because my phone is stuck with a bogus/stale URI for its JS/CSS bundles, for some reason (perhaps a stale service worker?).  At least: when I load the add-ons page on my phone, I see these errors:\r\n```\r\nFailed to parse add-on settings: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data 15 d7178b24e398ac1a4db0-app.js:48095:21\r\n    fetchInstalledAddonsDeferred https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:48095\r\n    notify https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:12019\r\n    flush https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:8983\r\nTypeError: \"responses is undefined\"\r\n    fetchAvailableAddonsDeferred https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:48197\r\n    notify https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:12019\r\n    flush https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:8983\r\nd7178b24e398ac1a4db0-app.js:12019:22\r\n    notify https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:12019\r\n    flush https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-app.js:8983\r\nSource map error: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data\r\nResource URL: https://eagle.mozilla-iot.org/bundle/d7178b24e398ac1a4db0-style.css\r\nSource Map URL: d7178b24e398ac1a4db0-style.css.map\r\n```\r\n\r\n(Notice the hash `d7178b24e398ac1a4db0` in the URIs there -- I believe those .css/.js files no longer exist, which is why we're having trouble loading them.)\r\n\r\nIf I try accessing the gateway from another browser, then everything is fine, and in devtools I can see it loading different bundle URIs with a different hex ID, `9ba0b98a02b85688ed96`:\r\nhttps://eagle.mozilla-iot.org/bundle/9ba0b98a02b85688ed96-app.js\r\nhttps://eagle.mozilla-iot.org/bundle/9ba0b98a02b85688ed96-style.css\r\n(I can load ^^ these js/css URIs directly just fine right now, so they look like the right ones.)\r\n\r\nSo I think my phone browser is stuck with the old URIs in some local cache / service-worker or something, and as a result it's (currently) unable to show me the gateway add-ons settings page.\r\n\r\nIs this a known issue & is there anything we can do to prevent this in the future?"},"comment":{"url":"https://api.github.com/repos/mozilla-iot/gateway/issues/comments/555089384","html_url":"https://github.com/mozilla-iot/gateway/issues/2289#issuecomment-555089384","issue_url":"https://api.github.com/repos/mozilla-iot/gateway/issues/2289","id":555089384,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NTA4OTM4NA==","user":{"login":"dholbert","id":426803,"node_id":"MDQ6VXNlcjQyNjgwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/426803?v=4","gravatar_id":"","url":"https://api.github.com/users/dholbert","html_url":"https://github.com/dholbert","followers_url":"https://api.github.com/users/dholbert/followers","following_url":"https://api.github.com/users/dholbert/following{/other_user}","gists_url":"https://api.github.com/users/dholbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dholbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dholbert/subscriptions","organizations_url":"https://api.github.com/users/dholbert/orgs","repos_url":"https://api.github.com/users/dholbert/repos","events_url":"https://api.github.com/users/dholbert/events{/privacy}","received_events_url":"https://api.github.com/users/dholbert/received_events","type":"User","site_admin":false},"created_at":"2019-11-18T16:17:16Z","updated_at":"2019-11-18T16:17:16Z","author_association":"NONE","body":"Sadly, that didn't do the trick for me.  (In my case, my phone has the only browser affected by this issue, and hard-reloading on other browsers doesn't seem to help.)"}}
{"actor":{"display_login":"dholbert"}}