Package is invalid. Details:’invalid value for ‘commands[1].description

1,086 views
Skip to first unread message

SATISH B

unread,
Jun 8, 2022, 8:57:19 AM6/8/22
to Chromium Extensions
My extension works for most people, but some people are getting this error when they install the extension from chrome web store:

  • Package is invalid. Details:’invalid value for ‘commands[1].description
After a lot of Googling I found that the error must be in the commands field of Manifest.json file. So I took a look at it.

The commands field looks like this:
Screenshot 2022-06-08 at 2.53.16 PM.png

As I read in the documentation, we need not add description field when using _execute_action, even if we use, it'll be ignored. You can read the documentation here: https://developer.chrome.com/docs/extensions/reference/commands/

Now what else I must be looking into, to debug this issue?

Update:
While I was halfway writing this, I also got an email from Chrome Developer Team that I've this error in my application: 
  • Package is invalid. Details:’invalid value for ‘commands[1].description
I've no idea what to do now. I'm still trying my best to check various cases. But the problem is, I'm not encountering this error, so I can't cross check after making any changes.

If anyone has encountered it or something similar, kindly let me know.

Thank you ..

Jackie Han

unread,
Jun 8, 2022, 11:17:33 AM6/8/22
to SATISH B, Chromium Extensions
If your "commands" field is like your screenshot, it should be no problem.
The error detail is invalid value for commands[1].description, but you don't have a description, could you put your complete manifest.json?

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/7c96ebfa-2c45-44b8-aeae-d32b1cf373b3n%40chromium.org.

SATISH B

unread,
Jun 8, 2022, 11:23:18 AM6/8/22
to Chromium Extensions, Jackie Han, Chromium Extensions, SATISH B
This is the full manifest.json file. I've just *** the name and description.
Screenshot 2022-06-08 at 5.21.32 PM.png

Jackie Han

unread,
Jun 8, 2022, 12:13:39 PM6/8/22
to SATISH B, Chromium Extensions
It's hard to see what's wrong here, maybe it's something else.
For example, you could package your extension, then unzip it, and check manifest.json in the unzipped folder.

SATISH B

unread,
Jun 8, 2022, 12:16:14 PM6/8/22
to Chromium Extensions, Jackie Han, Chromium Extensions, SATISH B
I actually checked it, and it's the same. No change at all.
My guess is, I do not have a description field inside commands field. Even though it's optional, it is still throwing error.
That's all I can think of as of now.

Simeon Vincent

unread,
Jun 27, 2022, 9:24:58 PM6/27/22
to SATISH B, Chromium Extensions, Jackie Han
Satish, you noted that only some people are encountering this error. Have you gathered information from affected users regarding their OS, Chrome version, or other information that might help isolate the problem? Also, could you share the extension ID so that I can take a closer look at the extension itself?

Simeon - @dotproto
Chrome Extensions DevRel


Reply all
Reply to author
Forward
0 new messages