"Plugin file failed extraction" during pubblication

I’ve been trying to submit a plugin to the marketplace and I keep getting this error while trying to attach the file.

The manifest is fairly simple and I already submitted other plugins before. This is the manifest (replaced id and name with “…”):

{
  "id": "...",
  "name": "...",
  "version": "1.0.0",
  "main": "index.js",
  "host": [
    {
      "app": "PS",
      "minVersion": "22.0.0"
    }
  ],
  "manifestVersion": 4,
  "entrypoints": [
    {
      "type": "command",
      "id": "export",
      "label": {
          "default": "Export"
      }
    }
  ],
  "icons": [
    {
      "width": 24,
      "height": 24,
      "path": "icons/icon.png",
      "scale": [
        1,
        2
      ],
      "theme": [
        "darkest",
        "dark",
        "medium",
        "lightest",
        "light"
      ]
    }
  ]
}

Unfortunately, the error is not useful AND I contacted Adobe and they could only tell me that the package works if installed manually. Any idea what’s going on? Thanks a lot!

@nuthinking Did your plugin load fine using the UXP Developer tools(UDT)? was there any manifest error reported in UDT?

Also can you check if there are any temp files in your package. Temp files can also lead to such failures.

Hello @nuthinking, I see two possible issues in your plugin file.

The first issue ( which is current issue) might be due to zero byte file within the plugin file.
Please refer: https://www.adobe.io/photoshop/uxp/distribution/submission-checklist/#silent-errors-and-hangs

The other issue (might occur after fixing above issue) is that your plugin manifest.json file contains a host as an array instead of an object.
Valid Eg:

  "host" : {
    "app" : "PS",
    "minVersion" : "22.0.0"
  },