The company I work for has a Firefox extension that we privately distribute so it isn’t in the AMO store. We are able to automatically update our extension using a JSON update manifest. The xpi package includes an update.rdf which has a link to the updated xpi file.
I have been through the process of updating our Firefox extension once before without issue. This time, however, when I try to update the extension through the Add-ons Manager, it responds with the message “No updates found.” This is what is logged in the browser console:
1561581031192 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data(resource://gre/modules/addons/AddonUpdateChecker.jsm:288:23) JS Stack trace: onLoad@AddonUpdateChecker.jsm:288:23
UpdateParser/<@AddonUpdateChecker.jsm:239:54
1561581031340 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data(resource://gre/modules/addons/AddonUpdateChecker.jsm:288:23) JS Stack trace: onLoad@AddonUpdateChecker.jsm:288:23
UpdateParser/<@AddonUpdateChecker.jsm:239:54
Here is a link to my manifest.json file
The only change I made to the JSON file that worked previously was to update the version number so I don’t understand why it wouldn’t work this time. It checks out okay on JSONlint. I have gone through the process three times but no joy.
I have researched the “JSON.parse: unexpected character” error but didn’t find anything pertinent to my situation. Any insights into this issue would be greatly appreciated. Thank you!