Reputation: 27811
I built a small Chrome extension - it shows your IP and geolocation information. I tested it several times, packaged it (using Grunt) and uploaded to the Chrome web store. I verified several time that the resulting zip file contains all the files needed by the app + the manifest.
I then removed my local version, and tried installing from the web store. I keep getting this error, even after refreshing, and restarting the browser several times:
"There was a problem adding this item to Chrome. Please refresh the page and try again."
How do I debug/solve this problem?
Update:
Looking at the JS console, I see an error every time I hit the install button:
webstorePrivate.beginInstallWithManifest3: Invalid manifest
No further information, and to me the manifest file looks ok (and it works when loaded locally).
Upvotes: 5
Views: 11954
Reputation: 11842
Please try logging out/signing out of the Web Store and signing back in.
source: https://productforums.google.com/forum/#!topic/chrome/vFBudQDy5UE
Upvotes: 0
Reputation: 2812
I had the same problem and I logging in with a proxy and the problem fixed.
Try a proxy as i guess.
Upvotes: 1
Reputation: 21
I had the same problem. I removed:
"app": {
"urls": [
],
From the Manifest.json file and it works. Hope this helps.
Upvotes: 2
Reputation: 27811
Ok, took a while, but I found the culprit and fixed it. I used Yeoman and Generator-Chrome-Extension to bootstrap the extension. One of the tasks in the Gruntfile.js reads like this:
grunt.registerTask('manifest', function() {
var manifest = grunt.file.readJSON(yeomanConfig.app + '/manifest.json');
//manifest.background.scripts = ['scripts/background.js'];
grunt.file.write(yeomanConfig.dist + '/manifest.json', JSON.stringify(manifest, null, 2));
});
As you can see on the third (commented) line, the task injects a background.js script EVEN if you do not need it. Furthermore if you, like me, use a background page, this renders the manifest invalid.
For some reason, it will work locally, just not from the store. Once I commented that line, the manifest is valid, and the extension available.
Upvotes: 3