extension on Web Store has error "Package is invalid / Could not load javascript" error

3,356 views
Skip to first unread message

Mike Wertheim

unread,
Aug 2, 2012, 2:59:59 PM8/2/12
to chromium-...@chromium.org
I'm the author and maintainer of this Chrome extension that is hosted
on the Web Store --
https://chrome.google.com/webstore/detail/ennflnaebogjainllkhndcpafcgechbb

About a week ago I uploaded a new version of the extension. The
upload to the Web Store succeeded fine, so the uploaded extension
passed the Web Store's sanity checks.

I recently found out that the extension doesn't work when downloaded
from the Web Store. If you try to install the extension from the Web
Store (using the "Add to Chrome" button), Chrome downloads the file
and displays the "Confirm New Extension" popup. If you click the
popup's "Add" button, Chrome displays an error that says: "Package is
invalid / Could not load javascript [filename] for content script".

There is no additional info in the Chrome log.

I have a few questions...

1) Is there a way to download the crx file that is hosted at the Web Store page?

2) If there was a problem with the extension, shouldn't the Web
Store's upload process have caught the error?

3) I find the "Could not load javascript" error surprising, since I
can install the crx locally and it seems to work fine. If anyone can
manage to download the crx, could you shed some light on what might be
wrong with the javascript?


Thanks!
Mike

Pam Greene

unread,
Aug 2, 2012, 4:02:17 PM8/2/12
to Mike Wertheim, chromium-...@chromium.org
While you're in the installation process looking at the confirmation dialog, the .crx file will be sitting in a temporary directory. On Mac, for instance, it'll be in your download folder (by default, ~/Downloads/). You can copy that file elsewhere, and it will remain after the failed installation deletes the temp file.  If you can't get the .crx from an interrupted download, I can email you a copy I got that way.

I unzipped the file and got "Warning: 306 extra bytes at beginning or within zipfile", plus 19 files. It won't load, though, because it's missing surfcanyon.js.

I'd guess your .crx got corrupted somehow on upload. Packing and uploading a new copy will probably fix it. Sorry, but I have no information on what sanity checks the Web Store performs, or whether they should have caught the problem.

- Pam

Mike

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.




--
Google Germany GmbH
Dienerstr. 12
80331 München
AG Hamburg, HRB 86891
 Sitz der Gesellschaft: Hamburg
 Geschäftsführer: Graham Law,
Katherine Stephens
Tax ID: 48/725/00206
 VAT ID: DE813741370

Reply all
Reply to author
Forward
Message has been deleted
0 new messages