"Invalid manifest" error when uploading an update

2,579 views
Skip to first unread message

Sergey Andryukhin

unread,
Aug 1, 2012, 8:09:35 AM8/1/12
to chromi...@chromium.org

hi!

I have an extension with manifest 2. Today I tried to upload new version with only description was changed (and add-on's version number) - nothing else was changed.

The dashboard gives me the error: "An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet."

I'm sure there are no comments in manifest file.

More notes:

- the description resides in _locale/en/messages.json file and it's length is 124 chars (fits to 132 chars limit).

- tried to upload several times during ~2.5 hours - no success.

How can I know what is the actual problem?

Jan Mechtel

unread,
Aug 1, 2012, 8:24:58 AM8/1/12
to chromi...@chromium.org
Can you post the actual description before and after? maybe there are some special characters in it?

Sergey Andryukhin

unread,
Aug 1, 2012, 8:29:36 AM8/1/12
to chromi...@chromium.org
sure,

this is a commit on github:


and this is actually manifest changes:

I also had an assumption that other locales might affect and cut descriptions in all locales to fit to 132 chars, but this didn't help.

Jan Mechtel

unread,
Aug 1, 2012, 8:32:41 AM8/1/12
to chromi...@chromium.org
It'd say it's worth a try to remove the quotes ' from User' and Chrome's

Sergey Andryukhin

unread,
Aug 1, 2012, 8:38:06 AM8/1/12
to chromi...@chromium.org
ok, just tried to remove that single quotes completely from description - didn't help.

Yoono

unread,
Aug 1, 2012, 1:32:51 PM8/1/12
to chromi...@chromium.org
I have the exact same issue, and my manifest file didn't change from the last one (except for the version number) that I posted on July 4th.

Kyle Kinney

unread,
Aug 1, 2012, 2:32:52 PM8/1/12
to chromi...@chromium.org
Yeah, I'm having this issue, too. I poked at it for a while, and it looks like the app store is rejecting any manifest larger than about 1200 characters - I literally pared down a manifest to the point that it was accepted, then added a bunch of 'b's to a url, and it stopped working.

Mihai Parparita

unread,
Aug 1, 2012, 2:35:56 PM8/1/12
to Kyle Kinney, chromi...@chromium.org
Thanks for the additional details, I've reported this issue to the Web Store engineers.

Mihai

On Wed, Aug 1, 2012 at 11:32 AM, Kyle Kinney <ky...@playrific.com> wrote:
Yeah, I'm having this issue, too. I poked at it for a while, and it looks like the app store is rejecting any manifest larger than about 1200 characters - I literally pared down a manifest to the point that it was accepted, then added a bunch of 'b's to a url, and it stopped working.

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-apps/-/tkIFJpagJ-8J.

To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.

Steve Streza

unread,
Aug 1, 2012, 4:57:04 PM8/1/12
to chromi...@chromium.org
I also am seeing this issue. Our v1 manifest.json file in an update was 1,536 bytes, and got rejected. Stripping out whitespace got the manifest.json down to 1,153 bytes. The server then accepted it.

Kevie Ware

unread,
Aug 1, 2012, 9:54:04 PM8/1/12
to chromi...@chromium.org
I'm coming across the same error also with my manifest ver.2. I even omitted my white-spaces in the manifest.json and gotten it down to 1400 bytes but the server is still rejecting it. Pretty annoying to say the least. 

Michael Hart / Awesome New Tab Page

unread,
Aug 1, 2012, 10:40:11 PM8/1/12
to chromi...@chromium.org
Try zipping the file with no compression (in WinRAR, "Store Only").

This solved the problem for me. Weird, I know.

Abraham Williams

unread,
Aug 1, 2012, 11:31:00 PM8/1/12
to Michael Hart / Awesome New Tab Page, chromi...@chromium.org
Store only works for me too. On a Mac terminal you can use `zip -r -0 extension.zip src/*`

Abraham
--
Abraham Williams | abrah.am | abraham+ | addvocate.co
@abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.

Sergey Andryukhin

unread,
Aug 2, 2012, 3:59:53 AM8/2/12
to chromi...@chromium.org, Michael Hart / Awesome New Tab Page
Thanks! That works for me too.

Lior Bornshtain

unread,
Aug 2, 2012, 4:49:18 AM8/2/12
to chromi...@chromium.org
After changing the manifest.json to version:2 and storing the extension in a zip, the web store does not complain.
However, when uploading I get a 503 error following with that one:



Is the store service is really un-available, or am I doing something wrong ?

Thanks in advance
/Lior.




To unsubscribe from this group, send email to chromium-apps+unsubscribe@chromium.org.

PhistucK

unread,
Aug 2, 2012, 5:57:38 AM8/2/12
to Lior Bornshtain, chromi...@chromium.org
Try a few minutes later, there might have been a momentary error.

PhistucK




To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.

Mihai Parparita

unread,
Aug 2, 2012, 5:25:16 PM8/2/12
to Kyle Kinney, chromi...@chromium.org, Chromium-extensions
On Wed, Aug 1, 2012 at 11:35 AM, Mihai Parparita <mih...@chromium.org> wrote:
Thanks for the additional details, I've reported this issue to the Web Store engineers.

There is indeed an issue with extracting manifest files from .zip files. A fix will be released in the next Web Store release sometime next week. In the meantime, turning off compression when generating the .zip file is a workaround.

Mihai

Alan Hamlett

unread,
Aug 2, 2012, 7:10:58 PM8/2/12
to chromi...@chromium.org, Kyle Kinney, Chromium-extensions
I ran into the same issue. Fixed it by combining lines in my manifest to shorten the file, so it seems like a file size issue?
Here is the commit that fixed the issue:
I was receiving the same error message about "if there are comments remove them".

On Thursday, August 2, 2012 2:25:16 PM UTC-7, Mihai Parparita wrote:

Pavel Reva

unread,
Aug 3, 2012, 4:52:44 AM8/3/12
to chromi...@chromium.org
Had same issue  "An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.". Same manifest version with same params as I had in previous version of my extension which was successfully uploaded before. 

Fixed that with:
- added every single resource (js, styles, images, htmls) app is using to 'web_accessible_resources'
- removed 'include_globs' param from manifest since was getting warning in Chrome during last few days

Now, getting following errors in console:
- Uncaught TypeError: undefined is not a function in crxgallery_csi.js:263

Hopefully, this is temporary issue in Web Store while processing zip files which will be fixed soon.

Andy Mitchell

unread,
Aug 7, 2012, 8:41:23 AM8/7/12
to chromi...@chromium.org
Having the same issue: An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.


I tried to upload using a zip file that had 0% compression; but it made no difference. (Using Abraham's compression command "zip -r -0 extension.zip src/*"). 

The manifest is 14kb. 


So I wondered if there was a problem with my manifest, and to test it, I uploaded an old version that had worked before, and still got the same error. So it doesn't appear it's my manifest.

Unless the requirements for the manifest have changed? 
Are we only allowed to use manifest version 2 now? 
Or as Pavel noted, do we have to specify every single 'web_accessible_resources', even on manifest version 1? 

Paul Kinlan

unread,
Aug 7, 2012, 12:08:31 PM8/7/12
to Andy Mitchell, chromi...@chromium.org

Can you send the manifest to the list. (Re description I thought the limit was 120 characters)

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.

Alan Hamlett

unread,
Aug 7, 2012, 1:08:50 PM8/7/12
to chromi...@chromium.org
This might be the fix:
"The web store team has fixed this bug (it'll be in the next web store release, sometime this week)."

I created a new issue on the Chromium project including my error message and manifest file above and received that reply.


On Tuesday, August 7, 2012 9:08:31 AM UTC-7, Paul Kinlan wrote:

Can you send the manifest to the list. (Re description I thought the limit was 120 characters)

To unsubscribe from this group, send email to chromium-apps+unsubscribe@chromium.org.

Andy Mitchell

unread,
Aug 7, 2012, 2:55:37 PM8/7/12
to chromi...@chromium.org, Andy Mitchell
Hi guys,

The failing manifest is at:

(The trademark icon doesn't render well in .json format online, but that's never been the cause of failure before). 


On Tuesday, August 7, 2012 5:08:31 PM UTC+1, Paul Kinlan wrote:

Can you send the manifest to the list. (Re description I thought the limit was 120 characters)

To unsubscribe from this group, send email to chromium-apps+unsubscribe@chromium.org.

Mihai Parparita

unread,
Aug 7, 2012, 7:03:56 PM8/7/12
to chromi...@chromium.org, Chromium-extensions
The Web Store bug fix has been released to production. Let me know if you're still having issues (and preferably, send me the .zip that you're trying to upload).

Mihai

paulspringett

unread,
Aug 8, 2012, 6:03:22 AM8/8/12
to chromi...@chromium.org, Chromium-extensions
Hi Mihai,

I'm still getting an error saying the manifest file is invalid when trying to install our extension from our site (using chrome.webstore.install()). Weirdly it uploads and publishes fine, and installs fine directly on the webstore page.

I've tried a compressed and uncompressed zip.

Can you advise a course of action please?

Regards,

Paul

PhistucK

unread,
Aug 8, 2012, 7:09:01 AM8/8/12
to paulspringett, chromi...@chromium.org, Chromium-extensions
Is the manifest saved as UTF-8?

PhistucK



--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.

paulspringett

unread,
Aug 8, 2012, 9:16:19 AM8/8/12
to chromi...@chromium.org, paulspringett, Chromium-extensions
Hi PhistucK,

Yes it's a UTF-8 file.

Cheers,

Paul

paulspringett

unread,
Aug 9, 2012, 4:54:53 AM8/9/12
to chromi...@chromium.org, Chromium-extensions
Hi Mihai,

I got the following email from you, but cannot find it me this thread...?

Can you let me know what the webstore ID is (and what URL you're trying to install it from)?

Mihai

This is our extension here:

And we are trying to install it from here:

(You'll need to sign in with a Facebook account).

Cheers,

Paul

On Wednesday, August 8, 2012 12:03:56 AM UTC+1, Mihai Parparita wrote:

Dan Silver

unread,
Aug 9, 2012, 11:16:58 PM8/9/12
to chromium-...@chromium.org, paulspringett, chromi...@chromium.org
I'm also getting the invalid manifest error with an extension update. The extension works fine locally and uploads fine to the webstore, but when installing the extension from the preview page I get the error. I've uploaded a copy of the manifest.json file to https://gist.github.com/3310701. Thank you for any help!

Dan Silver

unread,
Aug 10, 2012, 2:37:27 PM8/10/12
to chromi...@chromium.org, chromium-...@chromium.org, paulspringett
I uploaded the extension as a separate item to the chrome web store (didn't publish it) and it works fine.  So, I don't believe there's anything wrong with the manifest file itself.  This is very strange that I can't update the extension!

Mihai Parparita

unread,
Aug 10, 2012, 2:45:42 PM8/10/12
to Dan Silver, chromi...@chromium.org, chromium-...@chromium.org
This is a known Web Store issue with installing from the preview page during an update (the preview page is advertising the new version, but the downloaded .crx is the old version, and Chrome balks at the mismatch). All should be well once you publish.

Mihai

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.

Andy Mitchell

unread,
Aug 11, 2012, 10:53:01 AM8/11/12
to chromi...@chromium.org, Andy Mitchell
I've just tried to upload again after your changes were pushed to production, and still receive the same error ("An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.")

The file is saved in UTF-8. 

I'm guessing the problem is possibly not the one you fixed, maybe something that's been depreciated in the manifest (the manifest used to work)? 

Andy Mitchell

unread,
Aug 11, 2012, 11:07:08 AM8/11/12
to chromi...@chromium.org, Andy Mitchell
To further the experimentation, I removed all indentation and line returns from the manifest file, and removed the encoded 'TM' from the description. 
The upload failed again. 

Mihai Parparita

unread,
Aug 21, 2012, 2:41:28 PM8/21/12
to Andy Mitchell, chromi...@chromium.org
As a follow-up to anyone else who runs into this, the problem with Andy's extension turned out to be (another) Web Store bug: If you have another file in your zip (e.g. in a subdirectory) whose ends with "manifest.json", the Web Store would pick that file as the manifest instead, and complain about it being malformed.

I've reported the bug to the Web Store team, but renaming the file to remove the "manifest.json" suffix is a workaround in the meantime.

Mihai


To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.

Mukesh kumar Jat

unread,
Oct 22, 2012, 1:08:47 AM10/22/12
to chromi...@chromium.org


Having same problem
An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.
. na thing is working for me :( any solution ?

Scott Fujan

unread,
Oct 22, 2012, 1:13:39 AM10/22/12
to Mukesh kumar Jat, chromi...@chromium.org
Can you run JSON.parse on your manifest file? If not, you have a syntax error.

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.

Jason Lawson

unread,
Aug 14, 2013, 11:10:05 AM8/14/13
to chromi...@chromium.org
I have the same problem , I thought it's because i'm a new dev and the chrome team are pinging my ip address , I then tried it on my friends computer , doesn't work , my next step is to try the drive they are so very proud of .. I jus dont get it ...should i give up? with a bullet to the head o end this aweful chrome experience??? where's the support chrome team??
Reply all
Reply to author
Forward
0 new messages