Re: [crx] Manifest file is invalid

624 views
Skip to first unread message

PhistucK

unread,
Jul 16, 2012, 2:10:41 AM7/16/12
to Pedro Menezes, chromium-...@chromium.org
Is the manifest saved as UTF8 (with a BOM)?
If so, can you replace the special (accented) characters from?

Also, I believe the value of the "permissions" key must only contain hosts, not full URLs ("http://suggest.mlapps.com/", not "http://suggest.mlapps.com/jm/*").

PhistucK



On Tue, Jul 10, 2012 at 10:24 PM, Pedro Menezes <pedr...@gmail.com> wrote:
Hi, I am upgrading my extension's manifest.

In my local machine, the extension works.

When I publish for the test group and try to install it, this wild error message appears: "Manifest file is invalid".

This is the manifest:

{
  "name": "MercadoLivre - Sugestões de busca",
  "description" : "Busque no MercadoLivre direto da barra de endereços",

  "version": "0.12",
  "manifest_version": 2,
  
  "icons": { "128": "logo.png" },

  "background": {
    "page": "background.html"
  },

  "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",

  "omnibox": { "keyword" : "ml" },

  "permissions": [
  ]
}

How can I fix that?

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/3sira-3AN4cJ.
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.

Alvin Wong

unread,
Jul 16, 2012, 10:34:22 AM7/16/12
to chromium-...@chromium.org
Are you sure you packed and uploaded the correct files?

And according to http://code.google.com/chrome/extensions/match_patterns.html your values of the "permissions" key should be valid, in oppose to what PhistucK suggested.

Pedro Menezes於 2012年7月11日星期三UTC+8上午3時24分26秒寫道:
Hi, I am upgrading my extension's manifest.

In my local machine, the extension works.

When I publish for the test group and try to install it, this wild error message appears: "Manifest file is invalid"
This is the manifest:


{
  "name": "MercadoLivre - Sugestões de busca",
  "description" : "Busque no MercadoLivre direto da barra de endereços",

  "version": "0.12",
  "manifest_version": 2,
  
  "icons": { "128": "logo.png" },

  "background": {
    "page": "background.html"
  },

  "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",

  "omnibox": { "keyword" : "ml" },

  "permissions": [
  ]
}

PhistucK

unread,
Jul 16, 2012, 10:42:26 AM7/16/12
to Alvin Wong, chromium-...@chromium.org
Mmm..
host — for example, www.google.com or *.google.com or *; if the scheme is file, there is no host part

But I wrote "I believe" because I did not try it recently, however, there were issues with putting non host only URLs there once (if not still), so I am trying to play on the safe side.

PhistucK



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

Pedro Menezes

unread,
Jul 16, 2012, 11:30:34 AM7/16/12
to chromium-...@chromium.org
Phistuck, I saved as UTF-8 and without special characters and it didn't work.

The permissions worked in the last version. I changed them according to your suggestions and it didn't work.

Alvin Wong, everything is packed correctly. I use zip not crx by the way and everything is in the root. I can't change to crx because I uploaded the first version as zip.

The problem occurs when I upload a manifest with manifest_version 2 (with the suggested attribute names changes).

When I change back to manifest_version 1, everything works fine, so I think it isn't related to the pack or encoding.

Em terça-feira, 10 de julho de 2012 16h24min26s UTC-3, Pedro Menezes escreveu:
Hi, I am upgrading my extension's manifest.

In my local machine, the extension works.

When I publish for the test group and try to install it, this wild error message appears: "Manifest file is invalid".

Pedro Menezes

unread,
Aug 6, 2012, 4:55:53 PM8/6/12
to chromium-...@chromium.org
Problem NOT solvet yet.

I tried to update another extension of mine and I got this problem again.

Try to install the preview of GitHub Notifications:
  Join this group so you can install the extension: https://groups.google.com/d/forum/testeteste1230
  Install the extension: https://chrome.google.com/webstore/detail/lliahakgdhnopceclokooacmcgimcdoo/preview
  You will get "Manifest file is invalid."

Timur Gaskarov

unread,
Feb 6, 2013, 8:35:28 AM2/6/13
to chromium-...@chromium.org, hans....@gmail.com, narz...@gmail.com
Same problem
Reply all
Reply to author
Forward
0 new messages